calculateAngle
fun calculateAngle(dotProduct: Double, norm1: Double, norm2: Double, angleUnit: AngleUnit): Double(source)
Calculates the angle between two vectors using the dot product and their norms.
Return
The angle between the two vectors in the specified unit.
Parameters
dotProduct
The dot product of the two vectors.
norm1
The norm (magnitude) of the first vector.
norm2
The norm (magnitude) of the second vector.
angleUnit
The unit of the angle to return (radians or degrees).