Drawing3d documented Class Library

Matrix Methods

The methods of the Matrix structure are listed below. For a complete list of Matrix structure members, see the Matrix Members topic.

Public Static (Shared) Methods

Bias BIAS - Matrix
ExchangeXZ Returns a matrix, where 0-row and the 1-row are exchanged.
fromAngle Returns the orthogonal matrix, which is associated to the Euler angles Alfa, Beta and Gamma ( i.e Roll, Pitch, Yaw ).
FromEuler Calculates and returns a matrix by the Eulerangles Roll, Pitch and yaw.
FromString Converts a string to a 4 x 4- matrix, where valid delimiter are ; , and ' '. For example:
1    2.4   3  -5;
2.3  4.4   2   0;
1    2.4   3  -1;
1    8.1  3.2 -9;
Frustum Returns the perspective projection. The Frustum, which is given by (right, top, near) (left, top, near), ( right, bottom, near) and (left, bottom, near) as surface area and (right, top, far), (left, top, far), ( right, bottom, far) and (left, bottom, far) as cover area. This frustum will be transformed into a cube with (1, 1, 1) and (-1, -1, -1)
LookAt Gets the transformation matrix for a "look at" situation. The camera is at CameraPosition and looks to CameraTarget. Additionally a normalvector CameraUpVector has to be given, because the Camera can turn up or down...
MirrorOverloaded. Returns a mirror-transformation, whose mirrorplane contains the origin 0/0/0 and has the normal vector Normal
Orthogonal Returns the ortogonal projection, where the point( right, top, far) is mapped to (1, 1, 1) and the point( left, bottom, near) to (-1, -1, -1) Imagine a cube, which is genereted by it's edgepoints ( right, top, far) and ( left, bottom, near) Remark: The viewing cube is clipping the scene
Perspective Returns a perspective matrix.
RotationOverloaded. returns a rotationmatrix , whose rotation-axis is given by the direction. Angle is the rotationangle.
scaleOverloaded. Retrieves a scalematrix. Its scaling values are given by pt.x, pt.y and pt.z Fixpoint is the origin (0/0/0)
ScaleOverloaded. Retrieves a scalematrix. Its scaling values are given by pt.x, pt.y and pt.z Fixpoint is the origin (0/0/0)
toAngle Calculates the Euler angles roll, pitch anf yaw of an orthogonal matrix.
These are setted in the x, y, z coordinate of the result.
toEuler Will be called from toAngle
TranslationOverloaded. Returns a translation matrix. The values are given by the translationvector pt.

Public Instance Methods

Determinant Gets the determinant of a 4x4 Matrix
Equals This function checks the equality between two values xyz This is to avoid errors at the computational accuracy with doubles. If their distance of the coordinates is less than epsilon equality is done
GetHashCode overrides GetHashCode()
GetRotationAxis Returns the rotationaxis of a orthogonal matrix and the rotation angle.
GetRow Gets the i-th row
GetType (inherited from Object) 
invert Inverts the Matrix
mul Multiplicates with a Matrix M
toBase Converts a Matrix to a base, by taken the columnvectors as Basevectors.
ToString Converts a matrix in a string by using "[" and "]" for every row and ";" inside the row as delimiter
transpose Gives a transposed matrix.

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

Matrix Class | Drawing3d.Math Namespace