Documentation
    Preparing search index...

    Class LinearTrajectory

    Straight line at constant speed (§13 "linear").

    p(t) = from + (to − from) · t / duration
    v(t) = (to − from) / duration
    a(t) = 0
    

    Implements

    Index
    duration: number

    Natural extent of the path in seconds. See the module note on extrapolation.

    from: Vector3

    Position at time = 0.

    Position at time = duration.

    • Second derivative of position at time, per second squared. Writes into out when given.

      Parameters

      Returns Vector3

    • Position at time seconds. Writes into out when given.

      Parameters

      Returns Vector3

    • First derivative of position at time, per second. Writes into out when given.

      Parameters

      Returns Vector3