math docs
    Preparing search index...

    Function toVec2

    • Projects spherical coordinates onto the XZ plane, returning a Vec2 (x, z). Equivalent to taking the horizontal footprint of the 3D point.

      Parameters

      • out: vec2.Vec2

        the receiving Vec2

      • a: readonly [number, number, number]

        the source Spherical

      Returns vec2.Vec2

      out