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) -> VNVectorParameters
- vector:
The vector whose unit vector you want to calculate.
Return Value
The unit vector.