Coordinates & Math¶
Coordinate types, bounding volumes, and math utilities.
Coordinates¶
coordinates
¶
Coordinate and spatial types for cesiumkit.
Cartesian2
¶
Bases: CesiumBase
A 2D Cartesian point.
Cartesian3
¶
Bases: CesiumBase
A 3D Cartesian point in Earth-Centered, Earth-Fixed (ECEF) coordinates.
from_degrees(longitude, latitude, height=0.0)
classmethod
¶
Create a Cartesian3 from longitude/latitude in degrees.
from_radians(longitude, latitude, height=0.0)
classmethod
¶
Create a Cartesian3 from longitude/latitude in radians.
from_degrees_array(coordinates)
classmethod
¶
Create an array of Cartesian3 from a flat list [lon, lat, lon, lat, ...].
from_degrees_array_heights(coordinates)
classmethod
¶
Create an array from [lon, lat, h, lon, lat, h, ...].
from_shapely(geom)
classmethod
¶
Create a Cartesian3 from a shapely Point (WGS84 lon/lat).
Requires the geometry to be a Point; raises ValueError otherwise. Uses the Point's z coordinate as height if present, else 0.
Cartesian3FromDegrees
¶
Bases: CesiumBase
A Cartesian3 created from degrees. Serializes to Cesium.Cartesian3.fromDegrees().
Cartesian3FromRadians
¶
Bases: CesiumBase
A Cartesian3 created from radians. Serializes to Cesium.Cartesian3.fromRadians().
Cartesian3DegreesArray
¶
Bases: CesiumBase
An array of Cartesian3 from a flat degrees list. Used for polyline positions, etc.
Cartesian3DegreesArrayHeights
¶
Bases: CesiumBase
An array of Cartesian3 from a flat [lon, lat, h, ...] list.
Cartographic
¶
Bases: CesiumBase
A position defined by longitude, latitude (in radians), and height (in meters).
from_degrees(longitude, latitude, height=0.0)
classmethod
¶
Create a Cartographic from degrees.
CartographicFromDegrees
¶
Bases: CesiumBase
A Cartographic created from degrees.
BoundingSphere
¶
Bases: CesiumBase
A bounding sphere with a center and radius.
RectangleCoords
¶
Bases: CesiumBase
A cartographic rectangle defined by west, south, east, north bounds (in radians).
from_degrees(west, south, east, north)
classmethod
¶
Create a Rectangle from bounds in degrees.
RectangleCoordsFromDegrees
¶
Bases: CesiumBase
A Rectangle created from degree bounds.
NearFarScalar
¶
Bases: CesiumBase
Scalar values at near and far camera distances.
DistanceDisplayCondition
¶
Bases: CesiumBase
Display condition based on camera distance.
Math¶
math
¶
Math types for cesiumkit: rotations, quaternions, and related structures.
HeadingPitchRoll
¶
Bases: CesiumBase
Rotation defined by heading, pitch, and roll in radians.
from_degrees(heading=0.0, pitch=0.0, roll=0.0)
classmethod
¶
Create from values in degrees.
HeadingPitchRollFromDegrees
¶
Bases: CesiumBase
HeadingPitchRoll from degree values.
HeadingPitchRange
¶
Bases: CesiumBase
Camera offset defined by heading, pitch, and range.
Quaternion
¶
Bases: CesiumBase
A rotation represented as a quaternion.
Matrix3
¶
Bases: CesiumBase
A 3x3 matrix stored as 9 values in column-major order.
Matrix4
¶
Bases: CesiumBase
A 4x4 matrix stored as 16 values in column-major order.