tryNormalizeInPlaceWithAreaWeight Method
- If parameter
ais clearly nonzero and the direction vector can be normalized,- save the parameter
aas the optionalamember of the ray. - normalize the ray's direction vector
- save the parameter
- If parameter
ais nearly zero,- Set the
amember to zero - Set the ray's direction vector to zero.
- Set the
tryNormalizeInPlaceWithAreaWeight(a: number): boolean
| Parameter | Type | Description |
|---|---|---|
| a | number | area to be saved. |
Returns - boolean
Defined in
- geometry3d/Ray3d.ts Line 226
Last Updated: 29 September, 2023