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