math docs
    Preparing search index...

    Type Alias Polar

    Polar: [r: number, theta: number]

    A point in polar coordinates [r, theta] r - radial distance from the origin (>= 0) theta - angle from the +X axis, counter-clockwise (radians, range (-pi, pi])

    This is the standard 2D convention: Vec2 is (x, y) and theta = atan2(y, x). It is deliberately NOT the ground-plane slice of [[spherical]] (which is Y-up, with an XZ ground plane and azimuth measured from +Z); for that horizontal projection use spherical.fromVec2 / spherical.toVec2 instead.