*(_:_:)
Calculates the spherical linear interpolation between the identity rotation and the LHS rotation at the RHS interpolation parameter.
Declaration
static func * (lhs: Rotation3DFloat, rhs: Float) -> Rotation3DFloatParameters
- lhs:
The rotation
- rhs:
The interpolation parameter.
Discussion
For example, multiplying an angle of 90° by 0.5, returns an angle of 45°:
let rotation = Rotation3DFloat(angle: Angle2DFloat(degrees: 90),
axis: .init(x: 0, y: 1, z: 0))
let rotated = (rotation * 0.5).angle.degrees
print(rotated) // prints "45.0"Note This function returns the longest path where the angle is greater than 180°,