Method TryGetNormal
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryGetNormal(out GeoVector3)
Tries to normalize the vector without throwing, using the default tolerance.
public bool TryGetNormal(out GeoVector3 normal)
Parameters
normalGeoVector3The unit vector, or Zero when the vector is degenerate.
Returns
- bool
true if the vector could be normalized; otherwise, false.
TryGetNormal(out GeoVector3, Tolerance)
Tries to normalize the vector without throwing, within a tolerance.
public bool TryGetNormal(out GeoVector3 normal, Tolerance tolerance)
Parameters
normalGeoVector3The unit vector, or Zero when the vector is degenerate.
toleranceToleranceThe tolerance deciding what counts as zero length.
Returns
- bool
true if the vector could be normalized; otherwise, false.