C# Class Fusion.Core.Mathematics.Matrix3x2

Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Méthodes publiques

Свойство Type Description
Identity Matrix3x2
M11 float
M12 float
M21 float
M22 float
M31 float
M32 float

Méthodes publiques

Méthode Description
Add ( Matrix3x2 left, Matrix3x2 right ) : Matrix3x2

Determines the sum of two matrices.

Add ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void

Determines the sum of two matrices.

Determinant ( ) : float

Calculates the determinant of this matrix.

Divide ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void

Determines the quotient of two matrices.

Divide ( Matrix3x2 &left, float right, Matrix3x2 &result ) : void

Scales a matrix by the given value.

Equals ( Matrix3x2 other ) : bool

Determines whether the specified Matrix3x2 is equal to this instance.

Equals ( object value ) : bool

Determines whether the specified System.Object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

Invert ( Matrix3x2 value ) : Matrix3x2

Calculates the inverse of the specified matrix.

Invert ( ) : void

Calculates the inverse of this matrix instance.

Invert ( Matrix3x2 &value, Matrix3x2 &result ) : void

Calculates the inverse of the specified matrix.

Lerp ( Matrix3x2 start, Matrix3x2 end, float amount ) : Matrix3x2

Performs a linear interpolation between two matrices.

Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.

Lerp ( Matrix3x2 &start, Matrix3x2 &end, float amount, Matrix3x2 &result ) : void

Performs a linear interpolation between two matrices.

Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.

Matrix3x2 ( float value ) : System

Initializes a new instance of the Matrix3x2 struct.

Matrix3x2 ( float M11, float M12, float M21, float M22, float M31, float M32 ) : System

Initializes a new instance of the Matrix3x2 struct.

Multiply ( Matrix3x2 left, Matrix3x2 right ) : Matrix3x2

Determines the product of two matrices.

Multiply ( Matrix3x2 left, float right ) : Matrix3x2

Scales a matrix by the given value.

Multiply ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void

Determines the product of two matrices.

Multiply ( Matrix3x2 &left, float right, Matrix3x2 &result ) : void

Scales a matrix by the given value.

Negate ( Matrix3x2 value ) : Matrix3x2

Negates a matrix.

Negate ( Matrix3x2 &value, Matrix3x2 &result ) : void

Negates a matrix.

Rotation ( float angle ) : Matrix3x2

Creates a matrix that rotates.

Rotation ( float angle, System.Vector2 center ) : Matrix3x2

Creates a matrix that rotates about a specified center.

Rotation ( float angle, Matrix3x2 &result ) : void

Creates a matrix that rotates.

Rotation ( float angle, System.Vector2 center, Matrix3x2 &result ) : void

Creates a matrix that rotates about a specified center.

Scaling ( System.Vector2 scale ) : Matrix3x2

Creates a matrix that scales along the x-axis and y-axis.

Scaling ( float scale ) : Matrix3x2

Creates a matrix that uniformly scales along both axes.

Scaling ( float x, float y ) : Matrix3x2

Creates a matrix that scales along the x-axis and y-axis.

Scaling ( float x, float y, System.Vector2 center ) : Matrix3x2

Creates a matrix that is scaling from a specified center.

Scaling ( System.Vector2 &scale, Matrix3x2 &result ) : void

Creates a matrix that scales along the x-axis and y-axis.

Scaling ( float scale, Matrix3x2 &result ) : void

Creates a matrix that uniformly scales along both axes.

Scaling ( float x, float y, Matrix3x2 &result ) : void

Creates a matrix that scales along the x-axis and y-axis.

Scaling ( float x, float y, System.Vector2 &center, Matrix3x2 &result ) : void

Creates a matrix that is scaling from a specified center.

Skew ( float angleX, float angleY ) : Matrix3x2

Creates a skew matrix.

Skew ( float angleX, float angleY, Matrix3x2 &result ) : void

Creates a skew matrix.

SmoothStep ( Matrix3x2 start, Matrix3x2 end, float amount ) : Matrix3x2

Performs a cubic interpolation between two matrices.

SmoothStep ( Matrix3x2 &start, Matrix3x2 &end, float amount, Matrix3x2 &result ) : void

Performs a cubic interpolation between two matrices.

Subtract ( Matrix3x2 left, Matrix3x2 right ) : Matrix3x2

Determines the difference between two matrices.

Subtract ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void

Determines the difference between two matrices.

ToArray ( ) : float[]

Creates an array containing the elements of the matrix.

ToString ( ) : string

Returns a System.String that represents this instance.

ToString ( IFormatProvider formatProvider ) : string

Returns a System.String that represents this instance.

ToString ( string format ) : string

Returns a System.String that represents this instance.

ToString ( string format, IFormatProvider formatProvider ) : string

Returns a System.String that represents this instance.

TransformPoint ( Matrix3x2 matrix, System.Vector2 point ) : System.Vector2

Transforms a vector by this matrix.

TransformPoint ( Matrix3x2 &matrix, System.Vector2 &point, System.Vector2 &result ) : void

Transforms a vector by this matrix.

Transformation ( float xScale, float yScale, float angle, float xOffset, float yOffset ) : Matrix3x2

Creates a transformation matrix.

Transformation ( float xScale, float yScale, float angle, float xOffset, float yOffset, Matrix3x2 &result ) : void

Creates a transformation matrix.

Translation ( System.Vector2 value ) : Matrix3x2

Creates a translation matrix using the specified offsets.

Translation ( float x, float y ) : Matrix3x2

Creates a translation matrix using the specified offsets.

Translation ( System.Vector2 &value, Matrix3x2 &result ) : void

Creates a translation matrix using the specified offsets.

Translation ( float x, float y, Matrix3x2 &result ) : void

Creates a translation matrix using the specified offsets.

operator ( ) : Matrix3x2

Adds two matrices.

operator ( ) : bool

Tests for equality between two objects.

this ( int index ) : float

Gets or sets the component at the specified index.

this ( int row, int column ) : float

Gets or sets the component at the specified index.

Method Details

Add() public static méthode

Determines the sum of two matrices.
public static Add ( Matrix3x2 left, Matrix3x2 right ) : Matrix3x2
left Matrix3x2 The first matrix to add.
right Matrix3x2 The second matrix to add.
Résultat Matrix3x2

Add() public static méthode

Determines the sum of two matrices.
public static Add ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void
left Matrix3x2 The first matrix to add.
right Matrix3x2 The second matrix to add.
result Matrix3x2 When the method completes, contains the sum of the two matrices.
Résultat void

Determinant() public méthode

Calculates the determinant of this matrix.
public Determinant ( ) : float
Résultat float

Divide() public static méthode

Determines the quotient of two matrices.
public static Divide ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void
left Matrix3x2 The first matrix to divide.
right Matrix3x2 The second matrix to divide.
result Matrix3x2 When the method completes, contains the quotient of the two matrices.
Résultat void

Divide() public static méthode

Scales a matrix by the given value.
public static Divide ( Matrix3x2 &left, float right, Matrix3x2 &result ) : void
left Matrix3x2 The matrix to scale.
right float The amount by which to scale.
result Matrix3x2 When the method completes, contains the scaled matrix.
Résultat void

Equals() public méthode

Determines whether the specified Matrix3x2 is equal to this instance.
public Equals ( Matrix3x2 other ) : bool
other Matrix3x2 The to compare with this instance.
Résultat bool

Equals() public méthode

Determines whether the specified System.Object is equal to this instance.
public Equals ( object value ) : bool
value object The to compare with this instance.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Invert() public static méthode

Calculates the inverse of the specified matrix.
public static Invert ( Matrix3x2 value ) : Matrix3x2
value Matrix3x2 The matrix whose inverse is to be calculated.
Résultat Matrix3x2

Invert() public méthode

Calculates the inverse of this matrix instance.
public Invert ( ) : void
Résultat void

Invert() public static méthode

Calculates the inverse of the specified matrix.
public static Invert ( Matrix3x2 &value, Matrix3x2 &result ) : void
value Matrix3x2 The matrix whose inverse is to be calculated.
result Matrix3x2 When the method completes, contains the inverse of the specified matrix.
Résultat void

Lerp() public static méthode

Performs a linear interpolation between two matrices.
Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
public static Lerp ( Matrix3x2 start, Matrix3x2 end, float amount ) : Matrix3x2
start Matrix3x2 Start matrix.
end Matrix3x2 End matrix.
amount float Value between 0 and 1 indicating the weight of .
Résultat Matrix3x2

Lerp() public static méthode

Performs a linear interpolation between two matrices.
Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
public static Lerp ( Matrix3x2 &start, Matrix3x2 &end, float amount, Matrix3x2 &result ) : void
start Matrix3x2 Start matrix.
end Matrix3x2 End matrix.
amount float Value between 0 and 1 indicating the weight of .
result Matrix3x2 When the method completes, contains the linear interpolation of the two matrices.
Résultat void

Matrix3x2() public méthode

Initializes a new instance of the Matrix3x2 struct.
public Matrix3x2 ( float value ) : System
value float The value that will be assigned to all components.
Résultat System

Matrix3x2() public méthode

Initializes a new instance of the Matrix3x2 struct.
public Matrix3x2 ( float M11, float M12, float M21, float M22, float M31, float M32 ) : System
M11 float The value to assign at row 1 column 1 of the matrix.
M12 float The value to assign at row 1 column 2 of the matrix.
M21 float The value to assign at row 2 column 1 of the matrix.
M22 float The value to assign at row 2 column 2 of the matrix.
M31 float The value to assign at row 3 column 1 of the matrix.
M32 float The value to assign at row 3 column 2 of the matrix.
Résultat System

Multiply() public static méthode

Determines the product of two matrices.
public static Multiply ( Matrix3x2 left, Matrix3x2 right ) : Matrix3x2
left Matrix3x2 The first matrix to multiply.
right Matrix3x2 The second matrix to multiply.
Résultat Matrix3x2

Multiply() public static méthode

Scales a matrix by the given value.
public static Multiply ( Matrix3x2 left, float right ) : Matrix3x2
left Matrix3x2 The matrix to scale.
right float The amount by which to scale.
Résultat Matrix3x2

Multiply() public static méthode

Determines the product of two matrices.
public static Multiply ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void
left Matrix3x2 The first matrix to multiply.
right Matrix3x2 The second matrix to multiply.
result Matrix3x2 The product of the two matrices.
Résultat void

Multiply() public static méthode

Scales a matrix by the given value.
public static Multiply ( Matrix3x2 &left, float right, Matrix3x2 &result ) : void
left Matrix3x2 The matrix to scale.
right float The amount by which to scale.
result Matrix3x2 When the method completes, contains the scaled matrix.
Résultat void

Negate() public static méthode

Negates a matrix.
public static Negate ( Matrix3x2 value ) : Matrix3x2
value Matrix3x2 The matrix to be negated.
Résultat Matrix3x2

Negate() public static méthode

Negates a matrix.
public static Negate ( Matrix3x2 &value, Matrix3x2 &result ) : void
value Matrix3x2 The matrix to be negated.
result Matrix3x2 When the method completes, contains the negated matrix.
Résultat void

Rotation() public static méthode

Creates a matrix that rotates.
public static Rotation ( float angle ) : Matrix3x2
angle float Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
Résultat Matrix3x2

Rotation() public static méthode

Creates a matrix that rotates about a specified center.
public static Rotation ( float angle, System.Vector2 center ) : Matrix3x2
angle float Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
center System.Vector2 The center of the rotation.
Résultat Matrix3x2

Rotation() public static méthode

Creates a matrix that rotates.
public static Rotation ( float angle, Matrix3x2 &result ) : void
angle float Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
result Matrix3x2 When the method completes, contains the created rotation matrix.
Résultat void

Rotation() public static méthode

Creates a matrix that rotates about a specified center.
public static Rotation ( float angle, System.Vector2 center, Matrix3x2 &result ) : void
angle float Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
center System.Vector2 The center of the rotation.
result Matrix3x2 When the method completes, contains the created rotation matrix.
Résultat void

Scaling() public static méthode

Creates a matrix that scales along the x-axis and y-axis.
public static Scaling ( System.Vector2 scale ) : Matrix3x2
scale System.Vector2 Scaling factor for both axes.
Résultat Matrix3x2

Scaling() public static méthode

Creates a matrix that uniformly scales along both axes.
public static Scaling ( float scale ) : Matrix3x2
scale float The uniform scale that is applied along both axes.
Résultat Matrix3x2

Scaling() public static méthode

Creates a matrix that scales along the x-axis and y-axis.
public static Scaling ( float x, float y ) : Matrix3x2
x float Scaling factor that is applied along the x-axis.
y float Scaling factor that is applied along the y-axis.
Résultat Matrix3x2

Scaling() public static méthode

Creates a matrix that is scaling from a specified center.
public static Scaling ( float x, float y, System.Vector2 center ) : Matrix3x2
x float Scaling factor that is applied along the x-axis.
y float Scaling factor that is applied along the y-axis.
center System.Vector2 The center of the scaling.
Résultat Matrix3x2

Scaling() public static méthode

Creates a matrix that scales along the x-axis and y-axis.
public static Scaling ( System.Vector2 &scale, Matrix3x2 &result ) : void
scale System.Vector2 Scaling factor for both axes.
result Matrix3x2 When the method completes, contains the created scaling matrix.
Résultat void

Scaling() public static méthode

Creates a matrix that uniformly scales along both axes.
public static Scaling ( float scale, Matrix3x2 &result ) : void
scale float The uniform scale that is applied along both axes.
result Matrix3x2 When the method completes, contains the created scaling matrix.
Résultat void

Scaling() public static méthode

Creates a matrix that scales along the x-axis and y-axis.
public static Scaling ( float x, float y, Matrix3x2 &result ) : void
x float Scaling factor that is applied along the x-axis.
y float Scaling factor that is applied along the y-axis.
result Matrix3x2 When the method completes, contains the created scaling matrix.
Résultat void

Scaling() public static méthode

Creates a matrix that is scaling from a specified center.
public static Scaling ( float x, float y, System.Vector2 &center, Matrix3x2 &result ) : void
x float Scaling factor that is applied along the x-axis.
y float Scaling factor that is applied along the y-axis.
center System.Vector2 The center of the scaling.
result Matrix3x2 The created scaling matrix.
Résultat void

Skew() public static méthode

Creates a skew matrix.
public static Skew ( float angleX, float angleY ) : Matrix3x2
angleX float Angle of skew along the X-axis in radians.
angleY float Angle of skew along the Y-axis in radians.
Résultat Matrix3x2

Skew() public static méthode

Creates a skew matrix.
public static Skew ( float angleX, float angleY, Matrix3x2 &result ) : void
angleX float Angle of skew along the X-axis in radians.
angleY float Angle of skew along the Y-axis in radians.
result Matrix3x2 When the method completes, contains the created skew matrix.
Résultat void

SmoothStep() public static méthode

Performs a cubic interpolation between two matrices.
public static SmoothStep ( Matrix3x2 start, Matrix3x2 end, float amount ) : Matrix3x2
start Matrix3x2 Start matrix.
end Matrix3x2 End matrix.
amount float Value between 0 and 1 indicating the weight of .
Résultat Matrix3x2

SmoothStep() public static méthode

Performs a cubic interpolation between two matrices.
public static SmoothStep ( Matrix3x2 &start, Matrix3x2 &end, float amount, Matrix3x2 &result ) : void
start Matrix3x2 Start matrix.
end Matrix3x2 End matrix.
amount float Value between 0 and 1 indicating the weight of .
result Matrix3x2 When the method completes, contains the cubic interpolation of the two matrices.
Résultat void

Subtract() public static méthode

Determines the difference between two matrices.
public static Subtract ( Matrix3x2 left, Matrix3x2 right ) : Matrix3x2
left Matrix3x2 The first matrix to subtract.
right Matrix3x2 The second matrix to subtract.
Résultat Matrix3x2

Subtract() public static méthode

Determines the difference between two matrices.
public static Subtract ( Matrix3x2 &left, Matrix3x2 &right, Matrix3x2 &result ) : void
left Matrix3x2 The first matrix to subtract.
right Matrix3x2 The second matrix to subtract.
result Matrix3x2 When the method completes, contains the difference between the two matrices.
Résultat void

ToArray() public méthode

Creates an array containing the elements of the matrix.
public ToArray ( ) : float[]
Résultat float[]

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( IFormatProvider formatProvider ) : string
formatProvider IFormatProvider The format provider.
Résultat string

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( string format ) : string
format string The format.
Résultat string

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string The format.
formatProvider IFormatProvider The format provider.
Résultat string

TransformPoint() public static méthode

Transforms a vector by this matrix.
public static TransformPoint ( Matrix3x2 matrix, System.Vector2 point ) : System.Vector2
matrix Matrix3x2 The matrix to use as a transformation matrix.
point System.Vector2 The original vector to apply the transformation.
Résultat System.Vector2

TransformPoint() public static méthode

Transforms a vector by this matrix.
public static TransformPoint ( Matrix3x2 &matrix, System.Vector2 &point, System.Vector2 &result ) : void
matrix Matrix3x2 The matrix to use as a transformation matrix.
point System.Vector2 The original vector to apply the transformation.
result System.Vector2 The result of the transformation for the input vector.
Résultat void

Transformation() public static méthode

Creates a transformation matrix.
public static Transformation ( float xScale, float yScale, float angle, float xOffset, float yOffset ) : Matrix3x2
xScale float Scaling factor that is applied along the x-axis.
yScale float Scaling factor that is applied along the y-axis.
angle float Angle of rotation in radians.
xOffset float X-coordinate offset.
yOffset float Y-coordinate offset.
Résultat Matrix3x2

Transformation() public static méthode

Creates a transformation matrix.
public static Transformation ( float xScale, float yScale, float angle, float xOffset, float yOffset, Matrix3x2 &result ) : void
xScale float Scaling factor that is applied along the x-axis.
yScale float Scaling factor that is applied along the y-axis.
angle float Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
xOffset float X-coordinate offset.
yOffset float Y-coordinate offset.
result Matrix3x2 When the method completes, contains the created transformation matrix.
Résultat void

Translation() public static méthode

Creates a translation matrix using the specified offsets.
public static Translation ( System.Vector2 value ) : Matrix3x2
value System.Vector2 The offset for both coordinate planes.
Résultat Matrix3x2

Translation() public static méthode

Creates a translation matrix using the specified offsets.
public static Translation ( float x, float y ) : Matrix3x2
x float X-coordinate offset.
y float Y-coordinate offset.
Résultat Matrix3x2

Translation() public static méthode

Creates a translation matrix using the specified offsets.
public static Translation ( System.Vector2 &value, Matrix3x2 &result ) : void
value System.Vector2 The offset for both coordinate planes.
result Matrix3x2 When the method completes, contains the created translation matrix.
Résultat void

Translation() public static méthode

Creates a translation matrix using the specified offsets.
public static Translation ( float x, float y, Matrix3x2 &result ) : void
x float X-coordinate offset.
y float Y-coordinate offset.
result Matrix3x2 When the method completes, contains the created translation matrix.
Résultat void

operator() public static méthode

Adds two matrices.
public static operator ( ) : Matrix3x2
Résultat Matrix3x2

operator() public static méthode

Tests for equality between two objects.
public static operator ( ) : bool
Résultat bool

this() public méthode

Gets or sets the component at the specified index.
Thrown when the is out of the range [0, 5].
public this ( int index ) : float
index int The zero-based index of the component to access.
Résultat float

this() public méthode

Gets or sets the component at the specified index.
Thrown when the or is out of the range [0, 3].
public this ( int row, int column ) : float
row int The row of the matrix to access.
column int The column of the matrix to access.
Résultat float

Property Details

Identity public_oe static_oe property

Gets the identity matrix.
public static Matrix3x2,Fusion.Core.Mathematics Identity
Résultat Matrix3x2

M11 public_oe property

Element (1,1)
public float M11
Résultat float

M12 public_oe property

Element (1,2)
public float M12
Résultat float

M21 public_oe property

Element (2,1)
public float M21
Résultat float

M22 public_oe property

Element (2,2)
public float M22
Résultat float

M31 public_oe property

Element (3,1)
public float M31
Résultat float

M32 public_oe property

Element (3,2)
public float M32
Résultat float