klyn.math.geometry.Vector3d.normalize
method
public normalize() as Vector3d<Double>:
Description

Returns a unit vector with the same direction.

Returns

Normalized vector.

Throws
  • DivideByZeroException If the vector has zero length.
Example
unit = Vector3d<Double>(1.0, 2.0, 2.0).normalize()