A path defined by custom equations. The equations are JavaScript string expressions where the parameter is t. There is an equation for both the x and y value.

NOTE: This class creates a global variable named t.

Hierarchy (view full)

Implements

Constructors

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

  • Returns the parameteric X equation defining the path.

    Returns string

    the parameteric X equation defining the path

  • Returns the parameteric Y equation defining the path.

    Returns string

    the parameteric Y equation defining the path

  • 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)

  • Sets the parameteric X equation defining the path. A JavaScript expression where the parameter is t.

    Parameters

    • value: string

      the parameteric X equation defining the path

    Returns void

  • Sets the parameteric Y equation defining the path. A JavaScript expression where the parameter is t.

    Parameters

    • value: string

      the parameteric Y equation defining the path

    Returns void

  • 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