GLKMatrix4MakePerspective(_:_:_:_:)
Returns a 4x4 perspective projection matrix.
Declaration
func GLKMatrix4MakePerspective(_ fovyRadians: Float, _ aspect: Float, _ nearZ: Float, _ farZ: Float) -> GLKMatrix4Parameters
- fovyRadians:
The angle of the vertical viewing area.
- aspect:
The ratio between the horizontal and the vertical viewing area.
- nearZ:
The near clipping distance. Must be positive.
- farZ:
The far clipping distance. Must be positive and greater than the near distance.
Return Value
A new projection matrix.
See Also
Creating Matrices
GLKMatrix4Make(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)GLKMatrix4MakeAndTranspose(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)GLKMatrix4MakeWithArray(_:)GLKMatrix4MakeWithArrayAndTranspose(_:)GLKMatrix4MakeWithColumns(_:_:_:_:)GLKMatrix4MakeWithRows(_:_:_:_:)GLKMatrix4MakeRotation(_:_:_:_:)GLKMatrix4MakeXRotation(_:)GLKMatrix4MakeYRotation(_:)GLKMatrix4MakeZRotation(_:)GLKMatrix4MakeWithQuaternion(_:)GLKMatrix4MakeScale(_:_:_:)GLKMatrix4MakeTranslation(_:_:_:)GLKMatrix4MakeLookAt(_:_:_:_:_:_:_:_:_:)GLKMatrix4MakeOrtho(_:_:_:_:_:_:)