Clamp the Y angle of a vector to a given range. This function ensures that the Y angle of the vector is within the specified range, while maintaining the length and XZ components
Signature
fun clampYAngle(vector: Vector3, minAngleDegrees: Float, maxAngleDegrees: Float): Vector3