createOriginAndDirection MethodStatic
Create by copying coordinates from origin
and direction
.
createOriginAndDirection(origin: Readonly<WritableXAndY>, direction: Readonly<WritableXAndY>, result?: Ray2d): Ray2d
Parameter | Type | Description |
---|---|---|
origin | Readonly<WritableXAndY> | ray origin |
direction | Readonly<WritableXAndY> | ray direction |
result | Ray2d | optional pre-allocated object to return |
Returns - Ray2d
Defined in
- geometry3d/Ray2d.ts Line 61
Last Updated: 07 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.