init(scale:rotation:translation:)
Creates a new transformation using the given values.
Declaration
init(scale: SIMD3<Float> = SIMD3<Float>(x: 1, y: 1, z: 1), rotation: simd_quatf = simd_quaternion(0, 0, 0, 1), translation: SIMD3<Float> = SIMD3<Float>(x: 0, y: 0, z: 0))Parameters
- scale:
A scale factor.
- rotation:
The rotation given as a unit quaternion.
- translation:
The translation, or position along the x, y, and z axes.