ProtoTwin API
    Preparing search index...

    Class Frame

    Immutable affine frame.

    Implements

    Index

    Constructors

    • Constructor.

      Parameters

      • rotation: Quat

        The rotation of the frame.

      • position: Vec3

        The origin of the frame.

      Returns Frame

    Properties

    position: Vec3

    The origin of the frame.

    rotation: Quat

    The rotation of the frame.

    Accessors

    • get identity(): Frame

      Creates the identity frame.

      Returns Frame

    Methods

    • Determines whether two frames are exactly equal.

      Parameters

      Returns boolean

      True if the two frames are exactly equal, false otherwise.

    • Linearly interpolates between the two frames.

      Parameters

      • start: IFrame

        The start frame.

      • end: IFrame

        The end frame.

      • weight: number

        The interpolation fraction [0, 1] between the two frames.

      Returns Frame

      The interpolated frame.

    • Multiplies the first frame by the second frame.

      Parameters

      Returns Frame

      The first frame multiplied by the second frame.

    • Determines whether two frames are not exactly equal.

      Parameters

      Returns boolean

      True if the two frames are different, false otherwise.

    • Creates a frame from a rotation.

      Parameters

      • value: Quat

        The rotation.

      Returns Frame

      The rotation frame.

    • Spherically interpolates between two frames.

      Parameters

      • start: IFrame

        The start frame.

      • end: IFrame

        The end frame.

      • weight: number

        The interpolation fraction [0, 1] between the two frames.

      Returns Frame

      The interpolated frame.

    • Creates a frame from a translation.

      Parameters

      • value: Vec3

        The translation.

      Returns Frame

      The translation frame.