Chalkboard - v3.0.1
    Preparing search index...

    Function fromAlternateToCartesian

    • Converts a vector from an alternate coordinate system to the Cartesian coordinate system.

      Parameters

      • vect: ChalkboardVector

        The vector

      • type: "polar" | "bipolar" | "cylindrical" | "spherical"

        The alternate coordinate system, which can be "polar", "bipolar", "cylindrical", or "spherical"

      Returns ChalkboardVector

      // Returns (1, 0) (converts polar coordinates (1, 0) to Cartesian)
      const v = Chalkboard.vect.fromAlternateToCartesian(Chalkboard.vect.init(1, 0), "polar");