Vertex Viewer SDK
    Preparing search index...

    Function truncate

    • Adjusts either the start or end position of a range so that its contained within another range. Unlike constrain, this will not attempt to retain the range's length.

      If other does not intersect with to, then the range cannot be truncated and undefined is returned.

      Parameters

      Returns Range.Range | undefined