*(_:_:)
Calculates the spherical linear interpolation between the identity rotation and the RHS rotation at the LHS interpolation parameter.
Declaration
static func * (lhs: Float, rhs: Rotation3DFloat) -> Rotation3DFloatParameters
- lhs:
The interpolation parameter
- rhs:
The rotation.
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 = ( 0.5 * rotation).angle.degrees
print(rotated) // prints "45.0"Note This function returns the longest path where the angle is greater than 180°,