-
-
Notifications
You must be signed in to change notification settings - Fork 10
Matrix4f
Matrix4f represents the type of a 4x4 float matrix.
| Type | Size | Memory Management Model | File |
|---|---|---|---|
Matrix4f |
64 bytes | None | 2.7/Matrix4f.adept |
struct Matrix4f (array 16 float)
| Name | Type | Description |
|---|---|---|
array |
16 float |
Values of elements, left to right, top to bottom |
-
func zero(this *Matrix4f) voidSets all elements of matrix to
0.0f. -
func identity(this *Matrix4f) voidSets matrix to the identity matrix.
-
func identity(this *Matrix4f, scale float) voidSets matrix to a scaled identity matrix.
-
func transpose(this *Matrix4f) voidSets a matrix to its transpose.
-
func determinant(this *Matrix4f) floatComputes a matrix's determinant.
-
func inverse(this *Matrix4f) voidSets a matrix to its inverse if possible.
-
func toRotationMatrix(this *Matrix4f) voidConverts a matrix to a rotation matrix.
-
func multiply(this *Matrix4f, other Matrix4f) voidMultiplies a matrix by another matrix.
-
func translate(this *Matrix4f, x, y, z float) voidTranslates a matrix.
-
func translate(this *Matrix4f, xyz Vector3f) voidTranslates a matrix.
-
func translateFromIdentity(this *Matrix4f, x, y, z float) voidTranslates a matrix after setting it to the identity matrix.
-
func translateFromIdentity(this *Matrix4f, xyz Vector3f) voidTranslates a matrix after setting it to the identity matrix.
-
func scale(this *Matrix4f, x, y, z float) voidScales a matrix.
-
func scale(this *Matrix4f, xyz Vector3f) voidScales a matrix.
-
func scaleFromIdentity(this *Matrix4f, x, y, z float) voidScales a matrix after setting it to the identity matrix.
-
func scaleFromIdentity(this *Matrix4f, xyz Vector3f) voidScales a matrix after setting it to the identity matrix.
-
func rotate(this *Matrix4f, angle, x, y, z float) voidRotates a matrix by
anglein radians. -
func rotate(this *Matrix4f, angle float, axis Vector3f) voidRotates a matrix by
anglein radians. -
func rotateFromIdentity(this *Matrix4f, angle, x, y, z float) voidRotates a matrix by
anglein radians after setting it to the identity matrix. -
func rotateFromIdentity(this *Matrix4f, angle float, axis Vector3f) voidRotates a matrix by
anglein radians after setting it to the identity matrix. -
func frustum(this *Matrix4f, left, right, bottom, top, near, far float) voidSets a matrix to a perspective matrix from a frustum.
-
func perspective(this *Matrix4f, fovy, aspect, near, far float) voidSets a matrix to a perspective matrix.
-
func ortho(this *Matrix4f, left, right, bottom, top, near, far float) voidSets a matrix to an orthographic matrix.
-
func lookAt(this *Matrix4f, eye Vector3f, center Vector3f, up Vector3f) voidSets a matrix to a perspective matrix via lookAt.
-
func toString(this *Matrix4f) StringConverts a matrix to a
String -
func print(this *Matrix4f) voidPrints a matrix to stdout