C# Класс Fusion.Core.Mathematics.Matrix3x2

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Identity Matrix3x2
M11 float
M12 float
M21 float
M22 float
M31 float
M32 float

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный статический Метод

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.
Результат Matrix3x2

Add() публичный статический Метод

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.
Результат void

Determinant() публичный Метод

Calculates the determinant of this matrix.
public Determinant ( ) : float
Результат float

Divide() публичный статический Метод

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.
Результат void

Divide() публичный статический Метод

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.
Результат void

Equals() публичный Метод

Determines whether the specified Matrix3x2 is equal to this instance.
public Equals ( Matrix3x2 other ) : bool
other Matrix3x2 The to compare with this instance.
Результат bool

Equals() публичный Метод

Determines whether the specified System.Object is equal to this instance.
public Equals ( object value ) : bool
value object The to compare with this instance.
Результат bool

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

Invert() публичный статический Метод

Calculates the inverse of the specified matrix.
public static Invert ( Matrix3x2 value ) : Matrix3x2
value Matrix3x2 The matrix whose inverse is to be calculated.
Результат Matrix3x2

Invert() публичный Метод

Calculates the inverse of this matrix instance.
public Invert ( ) : void
Результат void

Invert() публичный статический Метод

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.
Результат void

Lerp() публичный статический Метод

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 .
Результат Matrix3x2

Lerp() публичный статический Метод

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.
Результат void

Matrix3x2() публичный Метод

Initializes a new instance of the Matrix3x2 struct.
public Matrix3x2 ( float value ) : System
value float The value that will be assigned to all components.
Результат System

Matrix3x2() публичный Метод

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.
Результат System

Multiply() публичный статический Метод

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.
Результат Matrix3x2

Multiply() публичный статический Метод

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.
Результат Matrix3x2

Multiply() публичный статический Метод

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.
Результат void

Multiply() публичный статический Метод

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.
Результат void

Negate() публичный статический Метод

Negates a matrix.
public static Negate ( Matrix3x2 value ) : Matrix3x2
value Matrix3x2 The matrix to be negated.
Результат Matrix3x2

Negate() публичный статический Метод

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.
Результат void

Rotation() публичный статический Метод

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.
Результат Matrix3x2

Rotation() публичный статический Метод

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.
Результат Matrix3x2

Rotation() публичный статический Метод

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.
Результат void

Rotation() публичный статический Метод

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.
Результат void

Scaling() публичный статический Метод

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.
Результат Matrix3x2

Scaling() публичный статический Метод

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.
Результат Matrix3x2

Scaling() публичный статический Метод

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.
Результат Matrix3x2

Scaling() публичный статический Метод

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.
Результат Matrix3x2

Scaling() публичный статический Метод

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.
Результат void

Scaling() публичный статический Метод

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.
Результат void

Scaling() публичный статический Метод

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.
Результат void

Scaling() публичный статический Метод

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.
Результат void

Skew() публичный статический Метод

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.
Результат Matrix3x2

Skew() публичный статический Метод

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.
Результат void

SmoothStep() публичный статический Метод

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 .
Результат Matrix3x2

SmoothStep() публичный статический Метод

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.
Результат void

Subtract() публичный статический Метод

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.
Результат Matrix3x2

Subtract() публичный статический Метод

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.
Результат void

ToArray() публичный Метод

Creates an array containing the elements of the matrix.
public ToArray ( ) : float[]
Результат float[]

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( IFormatProvider formatProvider ) : string
formatProvider IFormatProvider The format provider.
Результат string

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( string format ) : string
format string The format.
Результат string

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( string format, IFormatProvider formatProvider ) : string
format string The format.
formatProvider IFormatProvider The format provider.
Результат string

TransformPoint() публичный статический Метод

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.
Результат System.Vector2

TransformPoint() публичный статический Метод

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.
Результат void

Transformation() публичный статический Метод

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.
Результат Matrix3x2

Transformation() публичный статический Метод

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.
Результат void

Translation() публичный статический Метод

Creates a translation matrix using the specified offsets.
public static Translation ( System.Vector2 value ) : Matrix3x2
value System.Vector2 The offset for both coordinate planes.
Результат Matrix3x2

Translation() публичный статический Метод

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.
Результат Matrix3x2

Translation() публичный статический Метод

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.
Результат void

Translation() публичный статический Метод

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.
Результат void

operator() публичный статический Метод

Adds two matrices.
public static operator ( ) : Matrix3x2
Результат Matrix3x2

operator() публичный статический Метод

Tests for equality between two objects.
public static operator ( ) : bool
Результат bool

this() публичный Метод

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.
Результат float

this() публичный Метод

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.
Результат float

Описание свойств

Identity публичное статическое свойство

Gets the identity matrix.
public static Matrix3x2,Fusion.Core.Mathematics Identity
Результат Matrix3x2

M11 публичное свойство

Element (1,1)
public float M11
Результат float

M12 публичное свойство

Element (1,2)
public float M12
Результат float

M21 публичное свойство

Element (2,1)
public float M21
Результат float

M22 публичное свойство

Element (2,2)
public float M22
Результат float

M31 публичное свойство

Element (3,1)
public float M31
Результат float

M32 публичное свойство

Element (3,2)
public float M32
Результат float