API Reference > geometry-core > CartesianGeometry > Segment1d > shift shift Method shift (translate) the segment along its axis by adding dx to both x0 and x1. shift(dx: number): void Parameter Type Description dx number value to add to both x0 and x1 Returns - void Defined in geometry3d/Segment1d.ts Line 46 Last Updated: 12 June, 2024