Documentation
    Preparing search index...

    Class CircularTrajectory

    Circle in the XY plane (§7a: Y-up in 2D as well as 3D), swept at a constant rate.

    θ(t) = phase + angularVelocity · t
    p(t) = center + (r·cos θ, r·sin θ, 0)
    v(t) = r·ω · (−sin θ, cos θ, 0)
    a(t) = −r·ω² · (cos θ, sin θ, 0)          // centripetal, toward the centre
    

    duration is one revolution, 2π / |ω|, so duration / 2 is the diametrically opposite point. With ω = 0 the path is a fixed point and duration is Infinity.

    Implements

    Index
    angularVelocity: number

    Sweep rate in radians per second.

    center: Vector3

    Centre of the circle.

    duration: number

    One revolution in seconds, or Infinity when angularVelocity is 0.

    phase: number

    Angle at time = 0, in radians.

    radius: number