docsby gkjohnson
On this page

Properties

isEllipsoid: boolean

name: string

Methods

new Ellipsoid(
	// Semi-axis radius along the X axis.
	x: number = 1,

	// Semi-axis radius along the Y axis.
	y: number = 1,

	// Semi-axis radius along the Z axis.
	z: number = 1
)
intersectRay( ray: Ray, target: Vector3 ): Vector3 | null
getEastNorthUpFrame(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,

	// Height above the ellipsoid surface in meters.
	height: number,
	target: Matrix4
): Matrix4
getOrientedEastNorthUpFrame(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,

	// Height above the ellipsoid surface in meters.
	height: number,

	// Azimuth in radians, measured from true north towards east.
	az: number,

	// Elevation in radians, measured from the horizon upward.
	el: number,

	// Roll in radians around the north axis.
	roll: number,
	target: Matrix4
): Matrix4
getObjectFrame(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,

	// Height above the ellipsoid surface in meters.
	height: number,

	// Azimuth in radians, measured from true north towards east.
	az: number,

	// Elevation in radians, measured from the horizon upward.
	el: number,

	// Roll in radians around the north axis.
	roll: number,
	target: Matrix4,
	frame: Frames = OBJECT_FRAME
): Matrix4
getCartographicFromObjectFrame(
	matrix: Matrix4,
	target: Object,
	frame: Frames = OBJECT_FRAME
): Object
getEastNorthUpAxes(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,
	vecEast: Vector3,
	vecNorth: Vector3,
	vecUp: Vector3,
	point?: Vector3
): void
getCartographicToPosition(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,

	// Height above the ellipsoid surface in meters.
	height: number,
	target: Vector3
): Vector3
getPositionToCartographic( pos: Vector3, target: Object ): Object
getCartographicToNormal(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,
	target: Vector3
): Vector3
getPositionToNormal( pos: Vector3, target: Vector3 ): Vector3
getPositionToSurfacePoint(
	pos: Vector3,
	target: Vector3
): Vector3 | null
calculateHorizonDistance(
	// Latitude in degrees.
	latitude: number,

	// Height above the ellipsoid surface in meters.
	elevation: number
): number
calculateEffectiveRadius(
	// Latitude in degrees.
	latitude: number
): number
getPositionElevation( pos: Vector3 ): number
closestPointToRayEstimate( ray: Ray, target: Vector3 ): Vector3
copy( source: Ellipsoid ): this
clone(): Ellipsoid