docsby gkjohnson
Centering a tileset and turning it Y up
Data courtesy of NASA/JPL-Caltech
On this page

Methods

new ReorientationPlugin(
	options?: {
		// Latitude in radians of the surface point to orient to (requires `lon`).
		lat: number | null = null,

		// Longitude in radians of the surface point to orient to (requires `lat`).
		lon: number | null = null,

		// Height in metres above the ellipsoid surface.
		height: number = 0,

		// Axis to orient toward three.js +Y when no lat/lon is available. Valid values are `±x`, `±y`, `±z`.
		up: string = '+z',

		// Whether to reposition the tileset to the origin.
		recenter: boolean = true,

		// Azimuth rotation in radians.
		azimuth: number = 0,

		// Elevation rotation in radians.
		elevation: number = 0,

		// Roll rotation in radians.
		roll: number = 0
	}
)
transformLatLonHeightToOrigin(
	// Latitude in radians.
	lat: number,

	// Longitude in radians.
	lon: number,

	// Height in metres above the ellipsoid surface.
	height: number = 0,

	// Azimuth rotation in radians.
	azimuth: number = 0,

	// Elevation rotation in radians.
	elevation: number = 0,

	// Roll rotation in radians.
	roll: number = 0
): void