Struct Matrix3D
Represents the matrix 4x4.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public struct Matrix3D
Constructors
Matrix3D(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)
Initializes a new instance of the Matrix3D class.
Declaration
public Matrix3D(double m11, double m12, double m13, double m14, double m21, double m22, double m23, double m24, double m31, double m32, double m33, double m34, double m41, double m42, double m43, double m44)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | m11 | The M11 element of matrix. |
| System.Double | m12 | The M12 element of matrix. |
| System.Double | m13 | The M13 element of matrix. |
| System.Double | m14 | The M14 element of matrix. |
| System.Double | m21 | The M21 element of matrix. |
| System.Double | m22 | The M22 element of matrix. |
| System.Double | m23 | The M23 element of matrix. |
| System.Double | m24 | The M24 element of matrix. |
| System.Double | m31 | The M31 element of matrix. |
| System.Double | m32 | The M32 element of matrix. |
| System.Double | m33 | The M33 element of matrix. |
| System.Double | m34 | The M34 element of matrix. |
| System.Double | m41 | The M41 element of matrix. |
| System.Double | m42 | The M42 element of matrix. |
| System.Double | m43 | The M43 element of matrix. |
| System.Double | m44 | The M44 element of matrix. |
Properties
Identity
Gets the identity matrix.
Declaration
public static Matrix3D Identity { get; }
Property Value
| Type | Description |
|---|---|
| Matrix3D | The identity matrix. |
IsAffine
Gets a value indicating whether this matrix is affine.
Declaration
public bool IsAffine { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Item[Int32, Int32]
Gets or sets the System.Double with the specified column and row.
Declaration
public double this[int i, int j] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | i | |
| System.Int32 | j |
Property Value
| Type |
|---|
| System.Double |
Methods
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | Another object to compare to. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if obj and this instance are the same type and represent the same value; otherwise, false. |
Overrides
GetD(Matrix3D)
Gets the determinant.
Declaration
public static double GetD(Matrix3D matrix3D)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | matrix3D | The matrix. |
Returns
| Type |
|---|
| System.Double |
GetGauss(Matrix3D)
Gets the gauss result.
Declaration
public static Vector3D GetGauss(Matrix3D m1)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | The parameters. |
Returns
| Type |
|---|
| Vector3D |
Remarks
The columns of matrix is the A, B, C, D parameters of equations.
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A 32-bit signed integer that is the hash code for this instance. |
Overrides
GetIdentity()
Gets the identity matrix.
Declaration
public static Matrix3D GetIdentity()
Returns
| Type |
|---|
| Matrix3D |
GetInterval(Matrix3D)
Intervals the matrix.
Declaration
public static Matrix3D GetInterval(Matrix3D matrix3D)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | matrix3D | The matrix. |
Returns
| Type |
|---|
| Matrix3D |
GetInvertal(Matrix3D)
Intervals the matrix.
Declaration
[Obsolete("Use GetInterval")]
public static Matrix3D GetInvertal(Matrix3D matrix3D)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | matrix3D | The matrix. |
Returns
| Type |
|---|
| Matrix3D |
GetMinor(Matrix3D, Int32, Int32)
Gets the minor.
Declaration
public static double GetMinor(Matrix3D dd, int columnIndex, int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | dd | The matrix. |
| System.Int32 | columnIndex | The index of column. |
| System.Int32 | rowIndex | The index of row. |
Returns
| Type |
|---|
| System.Double |
RotateAlongOX(Double)
Creates transformation matrix that rotates polygon around OX axis.
Declaration
public static Matrix3D RotateAlongOX(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle to rotate. |
Returns
| Type | Description |
|---|---|
| Matrix3D | Transformation matrix. |
RotateAlongOY(Double)
Creates transformation matrix that rotates polygon around OY axis.
Declaration
public static Matrix3D RotateAlongOY(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle to rotate. |
Returns
| Type | Description |
|---|---|
| Matrix3D | Transformation matrix. |
RotateAlongOZ(Double)
Creates transformation matrix that rotates polygon around OZ axis.
Declaration
public static Matrix3D RotateAlongOZ(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle to rotate. |
Returns
| Type | Description |
|---|---|
| Matrix3D | Transformation matrix. |
Scale(Double, Double, Double)
Scales by the specified values.
Declaration
public static Matrix3D Scale(double dx, double dy, double dz)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | dx | The X scale. |
| System.Double | dy | The Y scale. |
| System.Double | dz | The Z scale. |
Returns
| Type |
|---|
| Matrix3D |
Shear(Double, Double, Double, Double, Double, Double)
Shears the specified values.
Declaration
public static Matrix3D Shear(double xy, double xz, double yx, double yz, double zx, double zy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | xy | The xy shear. |
| System.Double | xz | The xz shear. |
| System.Double | yx | The yx shear. |
| System.Double | yz | The yz shear. |
| System.Double | zx | The zx shear. |
| System.Double | zy | The zy shear. |
Returns
| Type |
|---|
| Matrix3D |
Tilt(Double)
Tilts by the specified angle.
Declaration
public static Matrix3D Tilt(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle. |
Returns
| Type |
|---|
| Matrix3D |
Transform(Double, Double, Double)
Transforms the specified vector.
Declaration
public static Matrix3D Transform(double x, double y, double z)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x | The X coordinate. |
| System.Double | y | The Y coordinate. |
| System.Double | z | The Z coordinate. |
Returns
| Type |
|---|
| Matrix3D |
Transposed(Matrix3D)
Transposes the specified matrix.
Declaration
public static Matrix3D Transposed(Matrix3D matrix3D)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | matrix3D | The matrix. |
Returns
| Type |
|---|
| Matrix3D |
Turn(Double)
Turns by the specified angle.
Declaration
public static Matrix3D Turn(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle. |
Returns
| Type |
|---|
| Matrix3D |
Twist(Double)
Twists by the specified angle.
Declaration
public static Matrix3D Twist(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle. |
Returns
| Type |
|---|
| Matrix3D |
Operators
Addition(Matrix3D, Matrix3D)
Implements the operator +.
Declaration
public static Matrix3D operator +(Matrix3D m1, Matrix3D m2)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | |
| Matrix3D | m2 |
Returns
| Type |
|---|
| Matrix3D |
BitwiseAnd(Matrix3D, Vector3D)
Implements the dot product operation.
Declaration
public static Vector3D operator &(Matrix3D m1, Vector3D v1)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | |
| Vector3D | v1 |
Returns
| Type |
|---|
| Vector3D |
Equality(Matrix3D, Matrix3D)
Implements the operator ==.
Declaration
public static bool operator ==(Matrix3D m1, Matrix3D m2)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | |
| Matrix3D | m2 |
Returns
| Type |
|---|
| System.Boolean |
Inequality(Matrix3D, Matrix3D)
Implements the operator !=.
Declaration
public static bool operator !=(Matrix3D m1, Matrix3D m2)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | |
| Matrix3D | m2 |
Returns
| Type |
|---|
| System.Boolean |
Multiply(Matrix3D, Matrix3D)
Implements the operator *.
Declaration
public static Matrix3D operator *(Matrix3D m1, Matrix3D m2)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | |
| Matrix3D | m2 |
Returns
| Type |
|---|
| Matrix3D |
Multiply(Matrix3D, Vector3D)
Implements the operator *.
Declaration
public static Vector3D operator *(Matrix3D m1, Vector3D point)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3D | m1 | |
| Vector3D | point |
Returns
| Type |
|---|
| Vector3D |
Multiply(Double, Matrix3D)
Implements the operator *.
Declaration
public static Matrix3D operator *(double f1, Matrix3D m1)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | f1 | |
| Matrix3D | m1 |
Returns
| Type |
|---|
| Matrix3D |