class WPSTangentialTransform
(Niantic.Experimental.Lightship.AR.WPS.WPSTangentialTransform)
概要
WPSTangentialTransform](./index.mdx)クラスは、ユークリッド接線座標系から地理座標系への変換を表し、両者間の変換メソッドを提供します。
class WPSTangentialTransform {
public:
// fields
Matrix4x4 TangentialToEUN;
double OriginLatitude;
double OriginLongitude;
double OriginAltitude;
static double DEGREES_TO_METRES = 111139.0;
static double METRES_TO_DEGREES = 1.0 / DEGREES_TO_METRES;
// methods
WPSTangentialTransform();
WPSTangentialTransform(
Matrix4x4 tangentialToEUN,
double originLatitude,
double originLongitude,
double originAltitude
);
void WorldToTangential(
double latitudeDegrees,
double longitudeDegrees,
double altitudeMetres,
Quaternion worldRotationEUN,
out Vector3 tangentialTranslationRUF,
out Quaternion tangentialRotationRUF
);
void WorldToTangential(
double latitudeDegrees,
double longitudeDegrees,
double altitudeMetres,
out Vector3 tangentialTranslationRUF
);
void TangentialToWorld(
Vector3 tangentialTranslationRUF,
Quaternion tangentialRotationRUF,
out double latitudeDegrees,
out double longitudeDegrees,
out double altitudeMetres,
out Quaternion worldRotationEUN
);
void TangentialToWorld(
Transform tangentialPose,
out double latitudeDegrees,
out double longitudeDegrees,
out double altitudeMetres,
out Quaternion worldRotationEUN
);
};