A path like an oval racetrack with vertical sections. The straight sections are vertical, so it is a good test for handling infinite slope situations.

The parameter, t starts at pi/2, corresponding to the topmost point of the oval.

t = pi/2 to pi is upper left quarter circle from top going counter clockwise
t = pi to 2+pi is straight down section
t = 2+pi to 2+2*pi is the bottom half circle (ccw)
t = 2 + 2*pi to 4 + 2*pi is straight up section
t = 4+2*pi to 4+ (5/2)*pi is upper right quarter circle

Hierarchy (view full)

Implements

Constructors

Properties

s_: number

length of straight section

t0_: number

top of upper arc

t1_: number

left end of upper arc

t2_: number

bottom of left vertical line

t3_: number

right end of lower arc

t4_: number

top of right vertical line

t5_: number

top of upper arc

Methods

  • Name of this object, either the language-independent name for scripting purposes or the localized name for display to user.

    The language-independent name should be the same as the English version but capitalized and with spaces and dashes replaced by underscore, see Util.toName and nameEquals.

    Parameters

    • Optional opt_localized: boolean

      true means return the localized version of the name; default is false which means return the language independent name.

    Returns string

    name of this object

  • Whether this ParametricPath has the given name, adjusting for the transformation to a language-independent form of the name, as is done by Util.toName.

    Parameters

    • name: string

      the English or language-independent version of the name

    Returns boolean

    whether this ParametricPath has the given name (adjusted to language-independent form)

  • Returns the x value for the given value of t in the parametric equation.

    Parameters

    • t: number

      the value of t in the parametric equation

    Returns number

    the x value for the given value of t

  • Returns the y value for the given value of t in the parametric equation.

    Parameters

    • t: number

      the value of t in the parametric equation

    Returns number

    the y value for the given value of t

Generated using TypeDoc