| Home | Trees | Indices | Help |
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_identity =
|
|||
_getters = _get_row_0, _get_row_1, _get_row_2, _get_row_3
|
|||
_setters = _set_row_0, _set_row_1, _set_row_2, _set_row_3
|
|||
|
|||
|
_row0 Row 0 |
|||
|
_row1 Row 1 |
|||
|
_row2 Row 2 |
|||
|
_row3 Row 3 |
|||
|
x_axis Row 0 |
|||
|
right Row 0 |
|||
|
y_axis Row 1 |
|||
|
up Row 1 |
|||
|
z_axis Row 2 |
|||
|
forward Row 2 |
|||
|
translate Row 3 |
|||
| _m | |||
|
Inherited from |
|||
|
|||
|
|
Gets a row of the matrix as a tuple row_no -- Index of row |
|
|
Creates a translation Matrix44 to (x, y, z). x -- X Coordinate y -- Y Coordinate z -- Z Coordinate |
Creates a Matrix44 that does a rotation about the x axis. angle -- Angle of rotation (in radians) |
Creates a Matrix44 that does a rotation about the y axis. angle -- Angle of rotation (in radians) |
Creates a Matrix44 that does a rotation about the z axis. angle -- Angle of rotation (in radians) |
Creates a Matrix44 that does a rotation about an axis. axis -- A vector of the axis angle -- Angle of rotation |
Creates a Matrix44 that does a rotation about each axis. angle_x -- Angle of rotation, about x angle_y -- Angle of rotation, about y angle_z -- Angle of rotation, about z |
Creates a Matrix44 that projects points in to 2d space. left -- Coordinate of left of screen right -- Coordination of right of screen top -- Coordination of the top of the screen bottom -- Coordination of the borrom of the screen near -- Coordination of the near clipping plane far -- Coordinate of the far clipping plane |
Creates a Matrix44 that projects points in to 2d space fov -- The field of view (in radians) aspect -- The aspect ratio of the screen (width / height) near -- Coordinate of the near clipping plane far -- Coordinate of the far clipping plane |
|
|
|
Sets an individual element in the Matrix44. coord is a tuple of (row, column) eg. Matrix44[2,3] = 3. |
Gets an individual element in the Matrix44. coord is a tuple of (row, column) eg. print Matrix44[2,3] |
Multiplies this matrix by another. Assumes that both matrices have a right column of (0, 0, 0, 1). This is true for matrices composed of rotations, translations and scales. fast_mul is approximately 25% quicker than the *= operator. rhs -- A matrix |
|
Returns a Vector3 for a given row. row_no -- The row index |
Returns a column as a tuple of 4 values. col_no -- The column index |
Sets the values in a row. row_no -- The index of the row row -- An container containing the new values |
Sets the values in a column. col_no -- The index of the column col -- An sequence of 4 values |
Transforms a vector and returns the result as a Vector3. v -- Vector to transform |
Transforms a Vector3 and returns the result as a tuple. v -- Vector to transform |
Transforms a 4d vector and returns the result as a tuple. v -- Vector to transform |
Transforms a sequence of points, and yields the result as Vector3s points -- A sequence of vectors |
Transforms a sequence of points and yields the result as tuples. points -- A sequence of vectors |
Transforms a sequence of points and yields the result as tuples. points -- A sequence of vectors |
Transforms a sequence of points and yields the result as tuples. points -- A sequence of vectors |
Rotates a Vector3 and returns the result. The translation part of the Matrix44 is ignored. v -- Vector to rotate |
Rotates a Vector3 and returns the result as a tuple The translation part of the Matrix44 is ignored. v -- Vector to rotate |
Inverse trasforms a Vector3 and returns the result. Warning: This is expensive, pre-calculate an inverse Matrix44 if you can. v -- Vector to transform |
Makes a scale Matrix44. If the scale_y and scale_z parameters are not given they default to the same as scale_x. |
Makes a rotation Matrix44 around an axis. axis -- An iterable containing the axis (three values) angle -- The angle to rotate (in radians) |
Makes a perspective projection Matrix44. left -- Coordinate of left of screen right -- Coordination of right of screen top -- Coordination of the top of the screen bottom -- Coordination of the borrom of the screen near -- Coordination of the near clipping plane far -- Coordinate of the far clipping plane |
Creates a Matrix44 that projects points in to 2d space fov -- The field of view (in radians) aspect -- The aspect ratio of the screen (width / height) near -- Coordinate of the near clipping plane far -- Coordinate of the far clipping plane |
|
Changes the translation according to a direction vector. To move in opposite directions (i.e back, left and down), first negate the vector. forward -- Units to move in the 'forward' direction right -- Units to move in the 'right' direction up -- Units to move in the 'up' direction |
|
|||
_identity
|
|
|||
_row0Row 0
|
_row1Row 1
|
_row2Row 2
|
_row3Row 3
|
x_axisRow 0
|
rightRow 0
|
y_axisRow 1
|
upRow 1
|
z_axisRow 2
|
forwardRow 2
|
translateRow 3
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Wed Jul 04 22:10:14 2007 | http://epydoc.sourceforge.net |