Description

Provides basic information about a transformation. See also: DeviceTracking

interface BasicTransform {
    getInvertedMatrix(): mat4;
    getMatrix(): mat4;
    getPosition(): vec3;
    getRotation(): quat;
    getScale(): vec3;
    getTypeName(): string;
    isOfType(type): boolean;
    isSame(other): boolean;
}

Hierarchy (view full)

Methods

  • Returns mat4

    Description

    Returns the inverted world matrix of the BasicTransform.

  • Returns mat4

    Description

    Returns the world matrix of the BasicTransform.

  • Returns vec3

    Description

    Returns the world position of the BasicTransform.

  • Returns quat

    Description

    Returns the world rotation of the BasicTransform.

  • Returns vec3

    Description

    Returns the world scale of the BasicTransform.

  • Returns string

    Description

    Returns the name of this object's type.

  • Parameters

    • type: string

    Returns boolean

    Description

    Returns true if the object matches or derives from the passed in type.

  • Parameters

    Returns boolean

    Description

    Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

Generated using TypeDoc