Line3
new Line3(start?: Vector3, end?: Vector3)
THREE: THREE.Line3
3D line segment defined by start and end points.
Properties
| Name | Type | Description |
|---|---|---|
start | Vector3 | Start point. |
end | Vector3 | End point. |
delta | Vector3 | Direction vector from start to end (read-only, cloned). |
length | number | Segment length (read-only). |
Methods
| Method | Description |
|---|---|
at(t: number, target?: Vector3): Vector3 | Returns the point at parameter t along the segment. |
closestPointToPoint(point: Vector3, clampToLine?: boolean, target?: Vector3): Vector3 | Returns the closest point on the segment to the given point. |
getCenter(target?: Vector3): Vector3 | Returns the midpoint of the segment. |
clone(): Line3 | Returns a new Line3 with the same endpoints. |