math docs
    Preparing search index...

    Function toVec2

    • Converts polar coordinates to a Cartesian Vec2: x = r * cos(theta) y = r * sin(theta)

      Parameters

      • out: vec2.Vec2

        the receiving Vec2

      • a: readonly [number, number]

        the source Polar

      Returns vec2.Vec2

      out