tryNormalizeInPlaceWithAreaWeight Method
Normalize the ray direction in place.
- 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
@returns  true if a is nonzero and normalization was successful. Otherwise, return false.
| Parameter | Type | Description | 
|---|---|---|
| a | number | value to be saved (e.g,. area). | 
Returns - boolean
true if a is nonzero and normalization was successful. Otherwise, return false.
Defined in
- geometry3d/Ray3d.ts Line 321
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.