# class Transform3

Transform3 handles homogeneous 4x4 transforms, i.e. transformations which can be represented by multiplying a 4x4 matrix with a homogeneous 3D coordinate. Transform3 can either pre-multiply a matrix onto the transformation, which will add a transform around the current transform, or it can post-multiply the matrix, which will add a transform inside the current transform. Post-multiply is the default mode.

See also: Matrix4x4

# Methods

Method Description
AddRotation Concatenates a rotation transform to the current transform.
AddScaling Concatenates a scaling transform to the current transform.
AddTransformation Concatenates a generic transform to the current transform.
AddTranslation Concatenates a translation transform to the current transform.
Clear Resets the transformation to the identity transform, resets the multiplication mode to postmultiply, and clears the matrix stack.
GetClass Get the name of the Transform3 class.
GetMatrix The matrix that is used to specify the transform.
GetStack The real array that is used to store the matrix stack.
IsA Returns true if Transform3 is a or is a descendant of the class named as the type parameter.
IsNull Returns true if the Transform3 object is invalid.
IsPostMultiply The transform concatenation mode.
IsPreMultiply The transform concatenation mode.
Pop Pops the topmost matrix on the the matrix stack, and replaces the current transform with the popped matrix.
PostMultiply The transform concatenation mode to post-multiply, any added transform will be concatenated using this mode.
PreMultiply The transform concatenation mode to pre-multiply, any added transform will be concatenated using this mode.
Push Pushes the current transform onto the matrix stack.

# Static methods

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

# Methods details

# AddRotation

Concatenates a rotation transform to the current transform.

    # AddScaling

    Concatenates a scaling transform to the current transform.

      # AddTransformation

      Concatenates a generic transform to the current transform.

        # AddTranslation

        Concatenates a translation transform to the current transform.

          # Clear

          Resets the transformation to the identity transform, resets the multiplication mode to postmultiply, and clears the matrix stack.

            # GetClass

            Get the name of the Transform3 class.

              # GetMatrix

              The matrix that is used to specify the transform.

                # GetStack

                The real array that is used to store the matrix stack.

                  # IsA

                  Returns true if Transform3 is a or is a descendant of the class named as the type parameter.

                    # IsNull

                    Returns true if the Transform3 object is invalid.

                      # IsPostMultiply

                      The transform concatenation mode.

                        # IsPreMultiply

                        The transform concatenation mode.

                          # Pop

                          Pops the topmost matrix on the the matrix stack, and replaces the current transform with the popped matrix.

                            # PostMultiply

                            The transform concatenation mode to post-multiply, any added transform will be concatenated using this mode.

                              # PreMultiply

                              The transform concatenation mode to pre-multiply, any added transform will be concatenated using this mode.

                                # Push

                                Pushes the current transform onto the matrix stack.

                                  # Static methods details

                                  # IsClassA

                                  Returns true if the class is a or is a descendant of the class named as the type parameter.

                                    # SafeCast

                                    SafeCast makes sure the input object is of a class that can be cast into spTransform3, and if this is the case, returns the object cast into spTransform3.