createOriginAndTarget MethodStatic
Create from origin and target points.
createOriginAndTarget(origin: XAndY, target: XAndY, result?: Ray2d): Ray2d
| Parameter | Type | Description |
|---|---|---|
| origin | XAndY | ray origin, cloned |
| target | XAndY | end of ray direction vector. The direction vector is target - origin. |
| result | Ray2d | optional pre-allocated object to return |
Returns - Ray2d
Defined in
- geometry3d/Ray2d.ts Line 47
Last Updated: 04 June, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.