Matrix
Jump to navigation
Jump to search
Matrix
A Matrix is a 4x4 column-major matrix.
Attributes
These attributes are read-only.
Name | Description |
---|---|
identity | True if the Matrix is an identity Matrix |
Methods
Name | Description |
---|---|
frustum(Rect, near=0.0, far=1.0) | Sets to a frustum |
lookat(eye, center, up) | Sets to a look-at matrix from the eye position to the center using the provided up vector. All three arguments are of type Point3D. |
ortho(Rect, near=-1.0, far=1.0) | Sets to a orthographic matrix |
perspective(y_fov, aspect, near=0.0, far=1.0) | Sets to a perspective matrix |
translate(point) | Translates the matrix by the point (Point3D). |
translate(x, y, z=0.0) | Translates the matrix by the x, y, z values. |
transform(point) | Returns the transformed point (Point3D). |
viewport(Rect, near=0.0, far=1.0) | Sets to a viewport |
Constants
Action Type
Name | Description |
---|---|
Action | A normal action that appears in the Actions menu (the default) |
ShapeImporter | An Action that should appear in the Shape Import menu |
ShapeExporter | An Action that should appear in the Shape Export menu |
Extension | An Action that implements core functionality is bound using some other means |