Show / Hide Table of Contents

Struct Matrix3d

Implements
IEquatable<Matrix3d>
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct Matrix3d

Constructors

View Source

Matrix3d(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)

Constructor that sets matrix's initial values

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 offsetX, double offsetY, double offsetZ, double m44)
Parameters
Type Name Description
System.Double m11

Value of the (1,1) field of the new matrix

System.Double m12

Value of the (1,2) field of the new matrix

System.Double m13

Value of the (1,3) field of the new matrix

System.Double m14

Value of the (1,4) field of the new matrix

System.Double m21

Value of the (2,1) field of the new matrix

System.Double m22

Value of the (2,2) field of the new matrix

System.Double m23

Value of the (2,3) field of the new matrix

System.Double m24

Value of the (2,4) field of the new matrix

System.Double m31

Value of the (3,1) field of the new matrix

System.Double m32

Value of the (3,2) field of the new matrix

System.Double m33

Value of the (3,3) field of the new matrix

System.Double m34

Value of the (3,4) field of the new matrix

System.Double offsetX

Value of the X offset field of the new matrix

System.Double offsetY

Value of the Y offset field of the new matrix

System.Double offsetZ

Value of the Z offset field of the new matrix

System.Double m44

Value of the (4,4) field of the new matrix.

Properties

View Source

IsAffine

Determines whether the matrix is affine

Declaration
public readonly bool IsAffine { get; }
Property Value
Type Description
System.Boolean
View Source

IsIdentity

Returns whether the matrix is identity

Declaration
public readonly bool IsIdentity { get; }
Property Value
Type Description
System.Boolean
View Source

M11

Retrieves or sets (1,1) value of the matrix

Declaration
public double M11 { get; set; }
Property Value
Type Description
System.Double
View Source

M12

Retrieves or sets (1,2) value of the matrix

Declaration
public double M12 { get; set; }
Property Value
Type Description
System.Double
View Source

M13

Retrieves or sets (1,3) value of the matrix

Declaration
public double M13 { get; set; }
Property Value
Type Description
System.Double
View Source

M14

Retrieves or sets (1,4) value of the matrix

Declaration
public double M14 { get; set; }
Property Value
Type Description
System.Double
View Source

M21

Retrieves or sets (2,1) value of the matrix

Declaration
public double M21 { get; set; }
Property Value
Type Description
System.Double
View Source

M22

Retrieves or sets (2,2) value of the matrix

Declaration
public double M22 { get; set; }
Property Value
Type Description
System.Double
View Source

M23

Retrieves or sets (2,3) value of the matrix

Declaration
public double M23 { get; set; }
Property Value
Type Description
System.Double
View Source

M24

Retrieves or sets (2,4) value of the matrix

Declaration
public double M24 { get; set; }
Property Value
Type Description
System.Double
View Source

M31

Retrieves or sets (3,1) value of the matrix

Declaration
public double M31 { get; set; }
Property Value
Type Description
System.Double
View Source

M32

Retrieves or sets (3,2) value of the matrix

Declaration
public double M32 { get; set; }
Property Value
Type Description
System.Double
View Source

M33

Retrieves or sets (3,3) value of the matrix

Declaration
public double M33 { get; set; }
Property Value
Type Description
System.Double
View Source

M34

Retrieves or sets (3,4) value of the matrix

Declaration
public double M34 { get; set; }
Property Value
Type Description
System.Double
View Source

M44

Retrieves or sets (4,4) value of the matrix

Declaration
public double M44 { get; set; }
Property Value
Type Description
System.Double
View Source

OffsetX

Retrieves or sets X offset of the matrix

Declaration
public double OffsetX { get; set; }
Property Value
Type Description
System.Double
View Source

OffsetY

Retrieves or sets Y offset of the matrix

Declaration
public double OffsetY { get; set; }
Property Value
Type Description
System.Double
View Source

OffsetZ

Retrieves or sets Z offset of the matrix

Declaration
public double OffsetZ { get; set; }
Property Value
Type Description
System.Double

Methods

View Source

Equals(Matrix3d)

Declaration
public bool Equals(Matrix3d other)
Parameters
Type Name Description
Matrix3d other
Returns
Type Description
System.Boolean
View Source

Equals(Matrix3d, Matrix3d)

Declaration
public static bool Equals(Matrix3d matrix1, Matrix3d matrix2)
Parameters
Type Name Description
Matrix3d matrix1
Matrix3d matrix2
Returns
Type Description
System.Boolean
View Source

Equals(Object)

Equals - compares this Matrix3D with the passed in object

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The object to compare to "this"

Returns
Type Description
System.Boolean

bool - true if the object is an instance of Matrix3D and if it's equal to "this"

View Source

GetHashCode()

Returns the HashCode for this Matrix3d

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

int - the HashCode for this Matrix3d

View Source

Transform(Point3d)

Transforms the given Point3D by this matrix, projecting the result back into the W=1 plane

Declaration
public Point3d Transform(Point3d point)
Parameters
Type Name Description
Point3d point

Point to transform

Returns
Type Description
Point3d
View Source

Translate(Vector3d)

Appends translation transform to the current matrix

Declaration
public void Translate(Vector3d offset)
Parameters
Type Name Description
Vector3d offset

Offset vector for transformation

Operators

View Source

Equality(Matrix3d, Matrix3d)

Compares two Matrix3D instances for exact equality

Declaration
public static bool operator ==(Matrix3d matrix1, Matrix3d matrix2)
Parameters
Type Name Description
Matrix3d matrix1

The first Matrix3d to compare

Matrix3d matrix2

The second Matrix3d to compare

Returns
Type Description
System.Boolean

bool - true if the two Matrix3d instances are exactly equal, false otherwise

View Source

Inequality(Matrix3d, Matrix3d)

Compares two Matrix3D instances for exact inequality.

Declaration
public static bool operator !=(Matrix3d matrix1, Matrix3d matrix2)
Parameters
Type Name Description
Matrix3d matrix1

The first Matrix3d to compare

Matrix3d matrix2

The second Matrix3d to compare

Returns
Type Description
System.Boolean

bool - true if the two Matrix3d instances are exactly unequal, false otherwise

Implements

IEquatable<>
  • View Source
In This Article
Back to top Copyright 2018-2024 CADology Limited