Class Fox::FXHMat
In: rdoc-sources/FXMat4.rb
Parent: Object

FXHMat is a 3-D homogeneous matrix.

Methods

*   +   -   /   []   det   eye   frustum   invert   left   look   new   new   new   new   new   ortho   rot   rot   rot   scale   scale   scale   to_s   trans   trans   transpose   xrot   xrot   yrot   yrot   zrot   zrot  

Public Class methods

Returns a new FXHMat instance with uninitialized elements.

Returns a new FXHMat instance initialized from the contents of otherMatrix.

Returns a new FXHMat instance with all elements initialized to w.

Returns a new FXHMat instance with each row initialized to the values in each of the input vectors (a, b, c and d).

Returns a new FXHMat instance with elements initialized by the supplied values (e.g. _a12_ is the initial value for the second row and third column).

Public Instance methods

Returns the product of this matrix and x, where x is either another matrix or a scalar.

Returns sum of this matrix and other.

Returns self - other.

Returns the result of performing an elementwise division of this matrix by x.

Returns the ith row of this matrix (an FXHVec)

Returns the determinant of this matrix

Set to identity matrix and return self.

Set to perspective projection for specified bounding box and return self.

Returns the inversion of this matrix

Multiply by left-hand matrix and return self.

Look at and return self.

Set to orthographic projection for specified bounding box and return self.

Pre-multiply this matrix by the rotation about unit-quaternion q and return self.

Pre-multiply this matrix by the rotation (c, s) about axis and return self. Here, axis is a FXVec instance, c is the cosine of the angle of rotation and s is the sine of the angle of rotation.

Pre-multiply by a rotation of phi radians about axis (an FXVec instance) and and return self.

Pre-multiply by the scaling tranformation matrix S(sx, sy, sz) and return self.

Scale by s and return self.

Pre-multiply by the scaling tranformation matrix S(sx, sy, sz) and return self.

Returns the stringified version of this matrix

Pre-multiply this matrix by the translation tranformation matrix T(tx, ty, tz) and return self.

Pre-multiply this matrix by the translation tranformation matrix T(vec[0], vec[1], vec[2]) and return self.

Returns the transpose of this matrix

Pre-multiply by rotation about the x-axis and return self. Here, c is the cosine of the angle of rotation and s is the sine of the angle of rotation.

Pre-multiply by a rotation of phi radians about the x-axis and return self.

Pre-multiply by rotation about the y-axis and return self. Here, c is the cosine of the angle of rotation and s is the sine of the angle of rotation.

Pre-multiply by a rotation of phi radians about the y-axis and return self.

Pre-multiply by rotation about the z-axis and return self. Here, c is the cosine of the angle of rotation and s is the sine of the angle of rotation.

Pre-multiply by a rotation of phi radians about the z-axis and return self.

[Validate]