Contents

unitVector(for:)

Calculates a vector that’s normalized by preserving its direction, so that the vector length equals 1.0.

Declaration

class func unitVector(for vector: VNVector) -> VNVector

Parameters

  • vector:

    The vector whose unit vector you want to calculate.

Return Value

The unit vector.

See Also

Inspecting a Vector