XRGeospatialPose
Represents a position and orientation relative to the Earth.
Coordinates are relative to the WGS84 Ellipsoid
.
Summary
Inheritance
Inherits from:IEquatable< XRGeospatialPose >
Constructors and Destructors |
|
|---|---|
XRGeospatialPose(Quaternion rotation, double latitude, double longitude, double altitude)
Constructs a geospatial pose with data.
|
|
XRGeospatialPose(double latitude, double longitude)
Constructs a geospatial pose from coordinates with 0 altitude.
|
|
XRGeospatialPose(LocationInfo locationInfo)
Constructs a geospatial pose from location info.
|
Public attributes |
|
|---|---|
Altitude
|
double
The altitude in meters.
|
IsCoordinateValid =>
Latitude >= -90D && Latitude <= 90D &&
Longitude >= -180D && Longitude <= 180D
|
bool
Gets a value indicating whether the geospatial pose has a valid coordinate.
|
Latitude
|
double
The latitude in degrees, between -90 and +90.
|
Longitude
|
double
The longitude in degrees, between -180 and 180.
|
Rotation
|
Quaternion
The orientation with respect to a coordinate system where +X=East, +Y=Up and +Z=South.
|
Public functions |
|
|---|---|
Equals(XRGeospatialPose other)
|
bool
|
ToString(string format)
|
string
Gets a formatted string.
|
ToString()
|
override string
|
Public attributes
Altitude
double Google::XR::Extensions::XRGeospatialPose::Altitude
The altitude in meters.
IsCoordinateValid
bool Google::XR::Extensions::XRGeospatialPose::IsCoordinateValid => Latitude >= -90D && Latitude <= 90D && Longitude >= -180D && Longitude <= 180D
Gets a value indicating whether the geospatial pose has a valid coordinate.
Used to avoid XrResultAndroid.GeospatialCoordinateInvalid failure.
| Details | |
|---|---|
| Returns |
True if it's valid.
|
Latitude
double Google::XR::Extensions::XRGeospatialPose::Latitude
The latitude in degrees, between -90 and +90.
Longitude
double Google::XR::Extensions::XRGeospatialPose::Longitude
The longitude in degrees, between -180 and 180.
Rotation
Quaternion Google::XR::Extensions::XRGeospatialPose::Rotation
The orientation with respect to a coordinate system where +X=East, +Y=Up and +Z=South.
Note: this coordinate system depends upon the precise position.
Public functions
Equals
bool Google::XR::Extensions::XRGeospatialPose::Equals( XRGeospatialPose other )
ToString
string Google::XR::Extensions::XRGeospatialPose::ToString( string format )
Gets a formatted string.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Returns |
The formatted string.
|
||
ToString
override string Google::XR::Extensions::XRGeospatialPose::ToString()
XRGeospatialPose
Google::XR::Extensions::XRGeospatialPose::XRGeospatialPose( Quaternion rotation, double latitude, double longitude, double altitude )
Constructs a geospatial pose with data.
| Details | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
||||||||
XRGeospatialPose
Google::XR::Extensions::XRGeospatialPose::XRGeospatialPose( double latitude, double longitude )
Constructs a geospatial pose from coordinates with 0 altitude.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
XRGeospatialPose
Google::XR::Extensions::XRGeospatialPose::XRGeospatialPose( LocationInfo locationInfo )
Constructs a geospatial pose from location info.
| Details | |||
|---|---|---|---|
| Parameters |
|
||