Houdini 21.0 Nodes APEX nodes

CartesianToGeodetic

Converts a 3D cartesian coordinate to its geodetic coordinate.

On this page
Since 21.0

Converts a 3D cartesian coordinate to its corresponding geodetic coordinate representation. In Houdini, geodetic coordinates are a type of spherical coordinate represented as a Vector3 such that:

Longitude is the horizontal angular offset from the prime meridian, which is directed at +Z axis. It has a range of (-π, π) from west to east about the +Y axis with the prime meridian representing the 0 offset. Latitude is the vertical angular offset from the equator, represented by the XZ plane. It has a range of (-π/2, π/2) from south to north with the equator representing the 0 offset.

Geodetic coordinates can be useful for determining the spatial location of a point in relation to the origin. For example, given a character centered on the origin and facing the +Z direction, geodetic coordinates can be used to determine if a point is to the left or right of the character, above or below, and in front of or behind the character.

Location

Longitude

Latitude

Left

Longitude < 0

Right

Longitude > 0

Front

-π/2 < Longitude < π/2

Back

-π/2 > Longitude > π/2

Below

Latitude < 0

Above

Latitude > 0

Inputs

cartesian: Vector3

The 3D cartesian coordinate: X, Y, Z.

Outputs

geodetic: Vector3

The converted geodetic coordinate: longitude (radians), latitude (radians), height.

See also

APEX nodes