createOriginAndTarget MethodStatic
Create from origin
and target
points.
createOriginAndTarget(origin: Readonly<WritableXAndY>, target: Readonly<WritableXAndY>, result?: Ray2d): Ray2d
Parameter | Type | Description |
---|---|---|
origin | Readonly<WritableXAndY> | ray origin, cloned |
target | Readonly<WritableXAndY> | 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: 07 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.