- Preparing search index...
- The search index is not available
xyz:three.js
Function extractSphericalCoordinatesFromLocation
-
Parameters
-
mapView: {
projection: Projection;
}
-
object: Object3D
-
location: Vector3Like | GeoCoordinatesLike
Returns {
azimuth: number;
tilt: number;
}
-
azimuth: number
-
tilt: number
Gets the spherical coordinates in radian of the object to the coordinates of
point
.Note: this method can be used to get the direction that an object points to, when
location
is the target of that object, by adding PI to it. Otherwise it only returns the spherical coordinates ofobject
in the tangent space oflocation
.