math docs
    Preparing search index...

    Function setFromVec2

    • Sets a Polar from Cartesian Vec2 coordinates: r = sqrt(x^2 + y^2) theta = atan2(y, x)

      Parameters

      • out: polar.Polar

        the receiving Polar

      • v: readonly [number, number]

        the source Vec2

      Returns polar.Polar

      out