Jypeli 4
The simple game programming library
|
Julkiset jäsenfunktiot | |
Matrix4x4 (Scalar m00, Scalar m01, Scalar m02, Scalar m03, Scalar m10, Scalar m11, Scalar m12, Scalar m13, Scalar m20, Scalar m21, Scalar m22, Scalar m23, Scalar m30, Scalar m31, Scalar m32, Scalar m33) | |
Matrix4x4 (Vector4D xAxis, Vector4D yAxis, Vector4D zAxis, Vector4D wAxis) | |
Matrix4x4 (Scalar[] values) | |
Matrix4x4 (Scalar[] values, int index) | |
Vector4D | GetColumn (int columnIndex) |
void | SetColumn (int columnIndex, Vector4D value) |
Vector4D | GetRow (int rowIndex) |
void | SetRow (int rowIndex, Vector4D 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. | |
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 (Matrix4x4 other) |
Staattiset julkiset jäsenfunktiot | |
static void | Copy (ref Matrix4x4 matrix, Scalar[] destArray) |
static void | Copy (ref Matrix4x4 matrix, Scalar[] destArray, int index) |
static void | Copy (Scalar[] sourceArray, out Matrix4x4 result) |
static void | Copy (Scalar[] sourceArray, int index, out Matrix4x4 result) |
static void | CopyTranspose (ref Matrix4x4 matrix, Scalar[] destArray) |
static void | CopyTranspose (ref Matrix4x4 matrix, Scalar[] destArray, int index) |
static void | CopyTranspose (Scalar[] sourceArray, out Matrix4x4 result) |
static void | CopyTranspose (Scalar[] sourceArray, int index, out Matrix4x4 result) |
static void | Copy (ref Matrix3x3 source, ref Matrix4x4 dest) |
static void | Copy (ref Matrix2x2 source, ref Matrix4x4 dest) |
static Matrix4x4 | Lerp (Matrix4x4 left, Matrix4x4 right, Scalar amount) |
static void | Lerp (ref Matrix4x4 left, ref Matrix4x4 right, ref Scalar amount, out Matrix4x4 result) |
static Matrix4x4 | FromArray (Scalar[] array) |
static Matrix4x4 | FromTransposedArray (Scalar[] array) |
static Matrix4x4 | FromTranslation (Vector3D translation) |
static void | FromTranslation (ref Vector3D translation, out Matrix4x4 result) |
static Matrix4x4 | FromScale (Vector3D scale) |
static void | FromScale (ref Vector3D scale, out Matrix4x4 result) |
static Matrix4x4 | FromLookAt (Vector3D origin, Vector3D positiveZAxis, Vector3D onPositiveY) |
static Matrix4x4 | FromOrthographic (Scalar left, Scalar right, Scalar bottom, Scalar top, Scalar near, Scalar far) |
static Matrix4x4 | From2DMatrix (Matrix3x3 source) |
static void | From2DMatrix (ref Matrix3x3 source, out Matrix4x4 result) |
static Matrix4x4 | From2DMatrix (Matrix2x3 source) |
static void | From2DMatrix (ref Matrix2x3 source, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix4x4 left, Matrix4x4 right) |
static void | Multiply (ref Matrix4x4 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix4x4 left, Scalar scalar) |
static void | Multiply (ref Matrix4x4 left, ref Scalar scalar, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix4x4 left, Matrix3x3 right) |
static void | Multiply (ref Matrix4x4 left, ref Matrix3x3 right, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix3x3 left, Matrix4x4 right) |
static void | Multiply (ref Matrix3x3 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix4x4 left, Matrix2x3 right) |
static void | Multiply (ref Matrix4x4 left, ref Matrix2x3 right, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix2x3 left, Matrix4x4 right) |
static void | Multiply (ref Matrix2x3 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix4x4 left, Matrix2x2 right) |
static void | Multiply (ref Matrix4x4 left, ref Matrix2x2 right, out Matrix4x4 result) |
static Matrix4x4 | Multiply (Matrix2x2 left, Matrix4x4 right) |
static void | Multiply (ref Matrix2x2 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix4x4 left, Matrix4x4 right) |
static void | Add (ref Matrix4x4 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix3x3 left, Matrix4x4 right) |
static void | Add (ref Matrix3x3 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix4x4 left, Matrix3x3 right) |
static void | Add (ref Matrix4x4 left, ref Matrix3x3 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix2x3 left, Matrix4x4 right) |
static void | Add (ref Matrix2x3 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix4x4 left, Matrix2x3 right) |
static void | Add (ref Matrix4x4 left, ref Matrix2x3 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix2x2 left, Matrix4x4 right) |
static void | Add (ref Matrix2x2 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Add (Matrix4x4 left, Matrix2x2 right) |
static void | Add (ref Matrix4x4 left, ref Matrix2x2 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix4x4 left, Matrix4x4 right) |
static void | Subtract (ref Matrix4x4 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix3x3 left, Matrix4x4 right) |
static void | Subtract (ref Matrix3x3 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix4x4 left, Matrix3x3 right) |
static void | Subtract (ref Matrix4x4 left, ref Matrix3x3 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix2x3 left, Matrix4x4 right) |
static void | Subtract (ref Matrix2x3 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix4x4 left, Matrix2x3 right) |
static void | Subtract (ref Matrix4x4 left, ref Matrix2x3 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix2x2 left, Matrix4x4 right) |
static void | Subtract (ref Matrix2x2 left, ref Matrix4x4 right, out Matrix4x4 result) |
static Matrix4x4 | Subtract (Matrix4x4 left, Matrix2x2 right) |
static void | Subtract (ref Matrix4x4 left, ref Matrix2x2 right, out Matrix4x4 result) |
static Matrix4x4 | Negate (Matrix4x4 source) |
static void | Negate (ref Matrix4x4 source) |
static void | Negate (ref Matrix4x4 source, out Matrix4x4 result) |
static Matrix4x4 | Invert (Matrix4x4 source) |
static void | Invert (ref Matrix4x4 source, out Matrix4x4 result) |
static Scalar | GetDeterminant (Matrix4x4 source) |
static void | GetDeterminant (ref Matrix4x4 source, out Scalar result) |
static Matrix4x4 | Transpose (Matrix4x4 source) |
static void | Transpose (ref Matrix4x4 source, out Matrix4x4 result) |
static Matrix4x4 | GetAdjoint (Matrix4x4 source) |
static void | GetAdjoint (ref Matrix4x4 source, out Matrix4x4 result) |
static Matrix4x4 | GetCofactor (Matrix4x4 source) |
static void | GetCofactor (ref Matrix4x4 source, out Matrix4x4 result) |
static Matrix4x4 | Parse (string s) |
static bool | TryParse (string s, out Matrix4x4 result) |
static bool | Equals (Matrix4x4 left, Matrix4x4 right) |
static bool | Equals (ref Matrix4x4 left, ref Matrix4x4 right) |
static Matrix4x4 | operator* (Matrix4x4 left, Matrix4x4 right) |
static Matrix4x4 | operator* (Matrix4x4 left, Scalar scalar) |
static Matrix4x4 | operator* (Matrix4x4 left, Matrix3x3 right) |
static Matrix4x4 | operator* (Matrix3x3 left, Matrix4x4 right) |
static Matrix4x4 | operator* (Matrix4x4 left, Matrix2x3 right) |
static Matrix4x4 | operator* (Matrix2x3 left, Matrix4x4 right) |
static Matrix4x4 | operator* (Matrix4x4 left, Matrix2x2 right) |
static Matrix4x4 | operator* (Matrix2x2 left, Matrix4x4 right) |
static Matrix4x4 | operator+ (Matrix4x4 left, Matrix4x4 right) |
static Matrix4x4 | operator+ (Matrix3x3 left, Matrix4x4 right) |
static Matrix4x4 | operator+ (Matrix4x4 left, Matrix3x3 right) |
static Matrix4x4 | operator+ (Matrix2x3 left, Matrix4x4 right) |
static Matrix4x4 | operator+ (Matrix4x4 left, Matrix2x3 right) |
static Matrix4x4 | operator+ (Matrix2x2 left, Matrix4x4 right) |
static Matrix4x4 | operator+ (Matrix4x4 left, Matrix2x2 right) |
static Matrix4x4 | operator- (Matrix4x4 left, Matrix4x4 right) |
static Matrix4x4 | operator- (Matrix3x3 left, Matrix4x4 right) |
static Matrix4x4 | operator- (Matrix4x4 left, Matrix3x3 right) |
static Matrix4x4 | operator- (Matrix2x3 left, Matrix4x4 right) |
static Matrix4x4 | operator- (Matrix4x4 left, Matrix2x3 right) |
static Matrix4x4 | operator- (Matrix2x2 left, Matrix4x4 right) |
static Matrix4x4 | operator- (Matrix4x4 left, Matrix2x2 right) |
static Matrix4x4 | operator- (Matrix4x4 source) |
static bool | operator== (Matrix4x4 left, Matrix4x4 right) |
static bool | operator!= (Matrix4x4 left, Matrix4x4 right) |
static | operator Matrix4x4 (Matrix3x3 source) |
static | operator Matrix4x4 (Matrix2x2 source) |
Julkiset attribuutit | |
const int | RowCount = 4 |
The number of rows. | |
const int | ColumnCount = 4 |
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 | m03 |
Scalar | m10 |
Scalar | m11 |
Scalar | m12 |
Scalar | m13 |
Scalar | m20 |
Scalar | m21 |
Scalar | m22 |
Scalar | m23 |
Scalar | m30 |
Scalar | m31 |
Scalar | m32 |
Scalar | m33 |
Staattiset julkiset attribuutit | |
static readonly Matrix4x4 | Zero |
static readonly Matrix4x4 | Identity |
Ominaisuudet | |
Vector4D | Rx [get, set] |
Vector4D | Ry [get, set] |
Vector4D | Rz [get, set] |
Vector4D | Rw [get, set] |
Vector4D | Cx [get, set] |
Vector4D | Cy [get, set] |
Vector4D | Cz [get, set] |
Vector4D | Cw [get, set] |
Scalar | Determinant [get] |
Gets the determinant of this matrix. | |
Matrix4x4 | Transposed [get] |
Swap the rows of the matrix with the columns. | |
Matrix4x4 | Cofactor [get] |
Used to generate the Cofactor of this matrix. | |
Matrix4x4 | Adjoint [get] |
Used to generate the adjoint of this matrix.. | |
Matrix4x4 | Inverted [get] |
written to test out a theory. a very wasteful implimentation. but works. | |
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. |
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.
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 = 4 |
The number of columns.
Toteuttaa luokan IMatrix.
const int Count = RowCount * ColumnCount |
The number of Scalar values in the class.
Toteuttaa luokan IAdvanceValueType.
readonly Matrix4x4 Identity [static] |
new Matrix4x4(
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1)
readonly Matrix4x4 Zero [static] |
new Matrix4x4(
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0)
Matrix4x4 Adjoint [get] |
Used to generate the adjoint of this matrix..
Matrix4x4 Cofactor [get] |
Used to generate the Cofactor of this matrix.
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.
Scalar Determinant [get] |
Gets the determinant of this matrix.
Toteuttaa luokan IMatrix.
Matrix4x4 Inverted [get] |
written to test out a theory. a very wasteful implimentation. but works.
Returns an inverted 4d matrix.
int IMatrix. RowCount [get] |
Matrix4x4 Transposed [get] |
Swap the rows of the matrix with the columns.