# class Matrix4x4

Matrix4x4 is used to represent and manipulate 4x4 transformation matrices, which can be either standard matrices, or homogeneous 4x4 matrices used to transform 3D homogeneous coordinates [x y z w]. The transformations are defined in row-major order.

See also: ReMath

# Properties

Property Description
Name The name of the Matrix4x4 object. (Inherited from Object)

# Methods

Method Description
AddObserver Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
DeepCopy Copies the contents of an input matrix to the current matrix.
Determinant3x3 Returns the top 3x3 determinant.
Direction3ArrayMultiply Multiply in-place an array with 3D direction vectors [x y z 0].
GetClass Get the name of the Matrix4x4 class. (Inherited from Object)
GetElement Get a matrix element.
GetElements The elements of the matrix.
Identity Set the matrix to the identity matrix.
Invert Invert the current matrix.
IsA Returns true if Matrix4x4 is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull Returns true if the Matrix4x4 object is invalid. (Inherited from Object)
IsSameObjectAs Returns true if the Matrix4x4 object is valid. (Inherited from Object)
NonNull Returns true if the Matrix4x4 object is valid. (Inherited from Object)
Point3ArrayMultiply Multiply in-place an array with 3D points [x y z 1].
PrintInfo Prints the content/info of the Matrix4x4 object to the log. (Inherited from Object)
RemoveObserver Removes a previously added observer object. (Inherited from Object)
SetElement Set a matrix element.
SetToInvert The matrix to the invert of the input matrix.
SetToRotationTransform Creates a 3D rotation in a homogeneous transformation 4x4 matrix around the specified axis.
SetToScalingTransform Creates a 3D scaling in a homogeneous transformation 4x4 matrix.
SetToTranslationTransform Creates a 3D translation in a homogeneous 4x4 matrix.
SetToTranspose The matrix to the transpose of the input matrix.
Transpose Transpose the current matrix.
Vector4ArrayMultiply Multiply in-place an array with full 4D vectors [x y z w].
Zero Set the matrix to the zero matrix (all zeros).

# Static methods

Method Description
IsClassA Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast SafeCast makes sure the input object is of a class that can be cast into spMatrix4x4, and if this is the case, returns the object cast into spMatrix4x4. (Inherited from Object)

# Properties details

# Name

The name of the Matrix4x4 object. (Inherited from Object)

    # Methods details

    # AddObserver

    Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)

      # DeepCopy

      Copies the contents of an input matrix to the current matrix.

        # Determinant3x3

        Returns the top 3x3 determinant.

          # Direction3ArrayMultiply

          Multiply in-place an array with 3D direction vectors [x y z 0].

            # GetClass

            Get the name of the Matrix4x4 class. (Inherited from Object)

              # GetElement

              Get a matrix element.

                # GetElements

                The elements of the matrix.

                  # Identity

                  Set the matrix to the identity matrix.

                    # Invert

                    Invert the current matrix.

                      # IsA

                      Returns true if Matrix4x4 is a or is a descendant of the class named as the type parameter. (Inherited from Object)

                        # IsNull

                        Returns true if the Matrix4x4 object is invalid. (Inherited from Object)

                          # IsSameObjectAs

                          Returns true if the Matrix4x4 object is valid. (Inherited from Object)

                            # NonNull

                            Returns true if the Matrix4x4 object is valid. (Inherited from Object)

                              # Point3ArrayMultiply

                              Multiply in-place an array with 3D points [x y z 1].

                                # PrintInfo

                                Prints the content/info of the Matrix4x4 object to the log. (Inherited from Object)

                                  # RemoveObserver

                                  Removes a previously added observer object. (Inherited from Object)

                                    # SetElement

                                    Set a matrix element.

                                      # SetToInvert

                                      The matrix to the invert of the input matrix.

                                        # SetToRotationTransform

                                        Creates a 3D rotation in a homogeneous transformation 4x4 matrix around the specified axis.

                                          # SetToScalingTransform

                                          Creates a 3D scaling in a homogeneous transformation 4x4 matrix.

                                            # SetToTranslationTransform

                                            Creates a 3D translation in a homogeneous 4x4 matrix.

                                              # SetToTranspose

                                              The matrix to the transpose of the input matrix.

                                                # Transpose

                                                Transpose the current matrix.

                                                  # Vector4ArrayMultiply

                                                  Multiply in-place an array with full 4D vectors [x y z w].

                                                    # Zero

                                                    Set the matrix to the zero matrix (all zeros).

                                                      # Static methods details

                                                      # IsClassA

                                                      Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)

                                                        # SafeCast

                                                        SafeCast makes sure the input object is of a class that can be cast into spMatrix4x4, and if this is the case, returns the object cast into spMatrix4x4. (Inherited from Object)