Jypeli 4
The simple game programming library
|
A 3x3 matrix which can represent rotations around axes. Lisää...
Julkiset jäsenfunktiot | |
Matrix3x3 (Scalar m00, Scalar m01, Scalar m02, Scalar m10, Scalar m11, Scalar m12, Scalar m20, Scalar m21, Scalar m22) | |
Creates a new Matrix3 with all the specified parameters. | |
Matrix3x3 (Vector3D xAxis, Vector3D yAxis, Vector3D zAxis) | |
Create a new Matrix from 3 Vertex3 objects. | |
Matrix3x3 (Scalar[] values) | |
Matrix3x3 (Scalar[] values, int index) | |
Vector3D | GetColumn (int columnIndex) |
void | SetColumn (int columnIndex, Vector3D value) |
Vector3D | GetRow (int rowIndex) |
void | SetRow (int rowIndex, Vector3D value) |
Scalar[,] | ToMatrixArray () |
Copies the elements of the IMatrix to a new 2-dimensional array of Scalars. | |
Scalar[] | ToArray () |
Copies the elements of the IAdvanceValueType to a new array of Scalar . | |
Scalar[] | ToTransposedArray () |
Copies the elements, in a Transposed order, of the IMatrix to a new array of Scalar. | |
Matrix4x4 | ToMatrix4x4From2D () |
Matrix4x4 | ToMatrix4x4 () |
void | CopyTo (Scalar[] array, int index) |
Copies all the elements of the IAdvanceValueType to the specified one-dimensional Array of Scalar. | |
void | CopyTransposedTo (Scalar[] array, int index) |
Copies all the elements, in a Transposed order, of the IAdvanceValueType to the specified one-dimensional Array of Scalar. | |
void | CopyFrom (Scalar[] array, int index) |
Copies all the elements, up to the Length of the IAdvanceValueType, of the specified one-dimensional Array to the IAdvanceValueType. | |
void | CopyTransposedFrom (Scalar[] array, int index) |
Copies all the elements, in a Transposed order, up to the IAdvanceValueType.Length of the IAdvanceValueType, of the specified one-dimensional Array to the IAdvanceValueType. | |
string | ToString (string format) |
turns the object into a string representation of itself with a special format for each Scaler in it. | |
override string | ToString () |
override int | GetHashCode () |
override bool | Equals (object obj) |
bool | Equals (Matrix3x3 other) |
Staattiset julkiset jäsenfunktiot | |
static void | Copy (ref Matrix3x3 matrix, Scalar[] destArray) |
static void | Copy (ref Matrix3x3 matrix, Scalar[] destArray, int index) |
static void | Copy (Scalar[] sourceArray, out Matrix3x3 result) |
static void | Copy (Scalar[] sourceArray, int index, out Matrix3x3 result) |
static void | CopyTranspose (ref Matrix3x3 matrix, Scalar[] destArray) |
static void | CopyTranspose (ref Matrix3x3 matrix, Scalar[] destArray, int index) |
static void | CopyTranspose (Scalar[] sourceArray, out Matrix3x3 result) |
static void | CopyTranspose (Scalar[] sourceArray, int index, out Matrix3x3 result) |
static void | Copy (ref Matrix4x4 source, out Matrix3x3 dest) |
static void | Copy (ref Matrix2x2 source, ref Matrix3x3 dest) |
static void | Copy2DToOpenGlMatrix (ref Matrix3x3 source, Scalar[] destArray) |
static Matrix3x3 | Lerp (Matrix3x3 left, Matrix3x3 right, Scalar amount) |
static void | Lerp (ref Matrix3x3 left, ref Matrix3x3 right, ref Scalar amount, out Matrix3x3 result) |
static Matrix3x3 | Multiply (Matrix3x3 left, Matrix3x3 right) |
Used to multiply (concatenate) two Matrix4x4s. | |
static void | Multiply (ref Matrix3x3 left, ref Matrix3x3 right, out Matrix3x3 result) |
static Matrix3x3 | Multiply (Matrix3x3 left, Scalar scalar) |
Used to multiply a Matrix3x3 object by a scalar value.. | |
static void | Multiply (ref Matrix3x3 left, ref Scalar scalar, out Matrix3x3 result) |
static Matrix3x3 | Multiply (Matrix3x3 left, Matrix2x2 right) |
Used to multiply (concatenate) a Matrix3x3 and a Matrix2x2. | |
static void | Multiply (ref Matrix3x3 left, ref Matrix2x2 right, out Matrix3x3 result) |
static Matrix3x3 | Multiply (Matrix2x2 left, Matrix3x3 right) |
Used to multiply (concatenate) a Matrix3x3 and a Matrix2x2. | |
static void | Multiply (ref Matrix2x2 left, ref Matrix3x3 right, out Matrix3x3 result) |
static Matrix3x3 | Add (Matrix3x3 left, Matrix3x3 right) |
Used to add two matrices together. | |
static void | Add (ref Matrix3x3 left, ref Matrix3x3 right, out Matrix3x3 result) |
static Matrix3x3 | Add (Matrix2x2 left, Matrix3x3 right) |
static void | Add (ref Matrix2x2 left, ref Matrix3x3 right, out Matrix3x3 result) |
static Matrix3x3 | Add (Matrix3x3 left, Matrix2x2 right) |
static void | Add (ref Matrix3x3 left, ref Matrix2x2 right, out Matrix3x3 result) |
static Matrix3x3 | Subtract (Matrix3x3 left, Matrix3x3 right) |
Used to subtract two matrices. | |
static void | Subtract (ref Matrix3x3 left, ref Matrix3x3 right, out Matrix3x3 result) |
static Matrix3x3 | Subtract (Matrix2x2 left, Matrix3x3 right) |
static void | Subtract (ref Matrix2x2 left, ref Matrix3x3 right, out Matrix3x3 result) |
static Matrix3x3 | Subtract (Matrix3x3 left, Matrix2x2 right) |
static void | Subtract (ref Matrix3x3 left, ref Matrix2x2 right, out Matrix3x3 result) |
static Matrix3x3 | Negate (Matrix3x3 source) |
Negates a Matrix3x3. | |
static void | Negate (ref Matrix3x3 source) |
static void | Negate (ref Matrix3x3 source, out Matrix3x3 result) |
static Matrix3x3 | Invert (Matrix3x3 source) |
static void | Invert (ref Matrix3x3 source, out Matrix3x3 result) |
static Scalar | GetDeterminant (Matrix3x3 source) |
static void | GetDeterminant (ref Matrix3x3 source, out Scalar result) |
static Matrix3x3 | Transpose (Matrix3x3 source) |
static void | Transpose (ref Matrix3x3 source, out Matrix3x3 result) |
static Matrix3x3 | GetAdjoint (Matrix3x3 source) |
static void | GetAdjoint (ref Matrix3x3 source, out Matrix3x3 result) |
static Matrix3x3 | GetCofactor (Matrix3x3 source) |
static void | GetCofactor (ref Matrix3x3 source, out Matrix3x3 result) |
static Matrix3x3 | FromArray (Scalar[] array) |
static Matrix3x3 | FromTransposedArray (Scalar[] array) |
static Matrix3x3 | FromTransformation (Scalar rotation, Vector2D translation) |
static void | FromTransformation (ref Scalar rotation, ref Vector2D translation, out Matrix3x3 result) |
static Matrix3x3 | FromRotationX (Scalar radianAngle) |
static void | FromRotationX (ref Scalar radianAngle, out Matrix3x3 result) |
static Matrix3x3 | FromRotationY (Scalar radianAngle) |
static void | FromRotationY (ref Scalar radianAngle, out Matrix3x3 result) |
static Matrix3x3 | FromRotationZ (Scalar radianAngle) |
static void | FromRotationZ (ref Scalar radianAngle, out Matrix3x3 result) |
static Matrix3x3 | FromRotationAxisUsingAtan (Scalar radianAngle, Vector3D axis) |
static Matrix3x3 | FromRotationAxis (Scalar radianAngle, Vector3D axis) |
static internal Matrix3x3 | FromLookAt (Vector3D origin, Vector3D positiveZAxis, Vector3D onPositiveY) |
static Matrix3x3 | FromScale (Vector3D scale) |
static void | FromScale (ref Vector3D scale, out Matrix3x3 result) |
static Matrix3x3 | FromScale (Vector2D scale) |
static void | FromScale (ref Vector2D scale, out Matrix3x3 result) |
static Matrix3x3 | FromTranslate2D (Vector2D value) |
static void | FromTranslate2D (ref Vector2D value, out Matrix3x3 result) |
static Matrix3x3 | FromShear3D (Vector2D value) |
static void | FromShear3D (ref Vector2D value, out Matrix3x3 result) |
static Scalar | GetDeterminant (Scalar m00, Scalar m01, Scalar m02, Scalar m10, Scalar m11, Scalar m12, Scalar m20, Scalar m21, Scalar m22) |
static Scalar | GetDeterminant (Vector3D Rx, Vector3D Ry, Vector3D Rz) |
static Matrix3x3 | FromEulerAnglesXYZ (Scalar yaw, Scalar pitch, Scalar roll) |
Constructs this Matrix from 3 euler angles, in degrees. | |
static Matrix3x3 | Parse (string s) |
static bool | TryParse (string s, out Matrix3x3 result) |
static bool | Equals (Matrix3x3 left, Matrix3x3 right) |
static bool | Equals (ref Matrix3x3 left, ref Matrix3x3 right) |
static Matrix3x3 | operator* (Matrix3x3 left, Matrix3x3 right) |
Multiply (concatenate) two Matrix3 instances together. | |
static Matrix3x3 | operator* (Matrix2x2 left, Matrix3x3 right) |
Multiply (concatenate) a Matrix3x3 and a Matrix2x2. | |
static Matrix3x3 | operator* (Matrix3x3 left, Matrix2x2 right) |
Multiply (concatenate) a Matrix3x3 and a Matrix2x2. | |
static Matrix3x3 | operator* (Matrix3x3 matrix, Scalar scalar) |
Multiplies all the items in the Matrix3 by a scalar value. | |
static Matrix3x3 | operator* (Scalar scalar, Matrix3x3 matrix) |
Multiplies all the items in the Matrix3 by a scalar value. | |
static Matrix3x3 | operator+ (Matrix3x3 left, Matrix3x3 right) |
Used to add two matrices together. | |
static Matrix3x3 | operator+ (Matrix2x2 left, Matrix3x3 right) |
static Matrix3x3 | operator+ (Matrix3x3 left, Matrix2x2 right) |
static Matrix3x3 | operator- (Matrix3x3 left, Matrix3x3 right) |
Used to subtract two matrices. | |
static Matrix3x3 | operator- (Matrix2x2 left, Matrix3x3 right) |
static Matrix3x3 | operator- (Matrix3x3 left, Matrix2x2 right) |
static Matrix3x3 | operator- (Matrix3x3 matrix) |
Negates all the items in the Matrix. | |
static bool | operator== (Matrix3x3 left, Matrix3x3 right) |
Test two matrices for (value) equality. | |
static bool | operator!= (Matrix3x3 left, Matrix3x3 right) |
static | operator Matrix3x3 (Matrix4x4 source) |
static | operator Matrix3x3 (Matrix2x2 source) |
Julkiset attribuutit | |
const int | RowCount = 3 |
The number of rows. | |
const int | ColumnCount = 3 |
The number of columns. | |
const int | Count = RowCount * ColumnCount |
The number of Scalar values in the class. | |
const int | Size = sizeof(Scalar) * Count |
The Size of the class in bytes;. | |
Scalar | m00 |
Scalar | m01 |
Scalar | m02 |
Scalar | m10 |
Scalar | m11 |
Scalar | m12 |
Scalar | m20 |
Scalar | m21 |
Scalar | m22 |
Staattiset julkiset attribuutit | |
static readonly Matrix3x3 | Identity |
static readonly Matrix3x3 | Zero |
Ominaisuudet | |
Vector3D | Rx [get, set] |
Vector3D | Ry [get, set] |
Vector3D | Rz [get, set] |
Vector3D | Cx [get, set] |
Vector3D | Cy [get, set] |
Vector3D | Cz [get, set] |
Scalar | Determinant [get] |
Gets the Determinant of the IMatrix. | |
Matrix3x3 | Transposed [get] |
Swap the rows of the matrix with the columns. | |
Matrix3x3 | Adjoint [get] |
Matrix3x3 | Cofactor [get] |
Matrix3x3 | Inverted [get] |
int IAdvanceValueType. | Count [get] |
Gets a 32-bit integer that represents the total number of elements in all the dimensions of IAdvanceValueType. | |
int IMatrix. | RowCount [get] |
Gets a 32-bit integer that represents the total number of Rows in the IMatrix. | |
int IMatrix. | ColumnCount [get] |
Gets a 32-bit integer that represents the total number of Columns in the IMatrix. |
A 3x3 matrix which can represent rotations around axes.
Matrix3x3 | ( | Scalar | m00, |
Scalar | m01, | ||
Scalar | m02, | ||
Scalar | m10, | ||
Scalar | m11, | ||
Scalar | m12, | ||
Scalar | m20, | ||
Scalar | m21, | ||
Scalar | m22 | ||
) | [inline] |
Creates a new Matrix3 with all the specified parameters.
Create a new Matrix from 3 Vertex3 objects.
xAxis | |
yAxis | |
zAxis |
Used to add two matrices together.
left | |
right |
void CopyFrom | ( | Scalar[] | array, |
int | index | ||
) | [inline] |
Copies all the elements, up to the Length of the IAdvanceValueType, of the specified one-dimensional Array to the IAdvanceValueType.
array | The one-dimensional Array that is the source of the elements copied to the IAdvanceValueType. |
index | A 32-bit integer that represents the index in array at which copying begins. |
Toteuttaa luokan IAdvanceValueType.
void CopyTo | ( | Scalar[] | array, |
int | index | ||
) | [inline] |
Copies all the elements of the IAdvanceValueType to the specified one-dimensional Array of Scalar.
array | The one-dimensional Array that is the destination of the elements copied from the IAdvanceValueType. |
index | A 32-bit integer that represents the index in array at which copying begins. |
Toteuttaa luokan IAdvanceValueType.
void CopyTransposedFrom | ( | Scalar[] | array, |
int | index | ||
) | [inline] |
Copies all the elements, in a Transposed order, up to the IAdvanceValueType.Length of the IAdvanceValueType, of the specified one-dimensional Array to the IAdvanceValueType.
array | The one-dimensional Array that is the source of the elements copied to the IAdvanceValueType. |
index | A 32-bit integer that represents the index in array at which copying begins. |
Toteuttaa luokan IMatrix.
void CopyTransposedTo | ( | Scalar[] | array, |
int | index | ||
) | [inline] |
Copies all the elements, in a Transposed order, of the IAdvanceValueType to the specified one-dimensional Array of Scalar.
array | The one-dimensional Array that is the destination of the elements copied from the IAdvanceValueType. |
index | A 32-bit integer that represents the index in array at which copying begins. |
Toteuttaa luokan IMatrix.
static Matrix3x3 FromEulerAnglesXYZ | ( | Scalar | yaw, |
Scalar | pitch, | ||
Scalar | roll | ||
) | [inline, static] |
Constructs this Matrix from 3 euler angles, in degrees.
yaw | |
pitch | |
roll |
Used to multiply (concatenate) two Matrix4x4s.
left | |
right |
Multiplies all the items in the Matrix3 by a scalar value.
matrix | |
scalar |
Multiply (concatenate) two Matrix3 instances together.
left | |
right |
Multiplies all the items in the Matrix3 by a scalar value.
matrix | |
scalar |
Used to add two matrices together.
left | |
right |
Negates all the items in the Matrix.
matrix |
Used to subtract two matrices.
left | |
right |
Test two matrices for (value) equality.
left | |
right |
Used to subtract two matrices.
left | |
right |
Scalar [] ToArray | ( | ) | [inline] |
Copies the elements of the IAdvanceValueType to a new array of Scalar .
Toteuttaa luokan IAdvanceValueType.
Scalar [,] ToMatrixArray | ( | ) | [inline] |
string ToString | ( | string | format | ) | [inline] |
turns the object into a string representation of itself with a special format for each Scaler in it.
format | the format to be applied to each Scalar |
Toteuttaa luokan IAdvanceValueType.
Scalar [] ToTransposedArray | ( | ) | [inline] |
Copies the elements, in a Transposed order, of the IMatrix to a new array of Scalar.
This is the Format Accepted by OpenGL.
Toteuttaa luokan IMatrix.
const int ColumnCount = 3 |
The number of columns.
Toteuttaa luokan IMatrix.
const int Count = RowCount * ColumnCount |
The number of Scalar values in the class.
Toteuttaa luokan IAdvanceValueType.
int IMatrix. ColumnCount [get] |
int IAdvanceValueType. Count [get] |
Gets a 32-bit integer that represents the total number of elements in all the dimensions of IAdvanceValueType.
Toteuttaa luokan IAdvanceValueType.
int IMatrix. RowCount [get] |
Matrix3x3 Transposed [get] |
Swap the rows of the matrix with the columns.