calculate Angle
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
dot Product
The dot product of the two vectors.
norm1
The norm (magnitude) of the first vector.
norm2
The norm (magnitude) of the second vector.
angle Unit
The unit of the angle to return (radians or degrees).