SCNMatrix4Translate(_:_:_:_:)
Returns a new matrix created by concatenating the specified matrix with a translation transformation.
Declaration
func SCNMatrix4Translate(_ m: SCNMatrix4, _ tx: Float, _ ty: Float, _ tz: Float) -> SCNMatrix4func SCNMatrix4Translate(_ m: SCNMatrix4, _ tx: CGFloat, _ ty: CGFloat, _ tz: CGFloat) -> SCNMatrix4Parameters
- m:
The matrix to be combined with a translation.
- tx:
The translation distance in the x-axis direction.
- ty:
The translation distance in the y-axis direction.
- tz:
The translation distance in the z-axis direction.
Return Value
A new matrix.
Discussion
The resulting transformation consists of the specified translation followed by the transformation represented by the mat parameter.