@JsType(isNative=true, namespace="Cesium", name="Transforms") public class Transforms extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Transforms.LocalFrameToFixedFrame
Computes a 4x4 transformation matrix from a reference frame centered at the provided origin to the provided ellipsoid's fixed reference frame.
|
Modifier and Type | Method and Description |
---|---|
static Matrix3 |
computeFixedToIcrfMatrix(JulianDate date)
Computes a rotation matrix to transform a point or vector from the Earth-Fixed frame axes (ITRF) to the
International Celestial Reference Frame (GCRF/ICRF) inertial frame axes at a given time.
|
static Matrix3 |
computeFixedToIcrfMatrix(JulianDate date,
Matrix3 result)
Computes a rotation matrix to transform a point or vector from the Earth-Fixed frame axes (ITRF) to the
International Celestial Reference Frame (GCRF/ICRF) inertial frame axes at a given time.
|
static Matrix3 |
computeIcrfToFixedMatrix(JulianDate date)
Computes a rotation matrix to transform a point or vector from the International Celestial Reference Frame (GCRF/ICRF)
inertial frame axes to the Earth-Fixed frame axes (ITRF) at a given time.
|
static Matrix3 |
computeIcrfToFixedMatrix(JulianDate date,
Matrix3 result)
Computes a rotation matrix to transform a point or vector from the International Celestial Reference Frame (GCRF/ICRF)
inertial frame axes to the Earth-Fixed frame axes (ITRF) at a given time.
|
static Matrix3 |
computeTemeToPseudoFixedMatrix(JulianDate date)
Computes a rotation matrix to transform a point or vector from True Equator Mean Equinox (TEME) axes to
the pseudo-fixed axes at a given time.
|
static Matrix3 |
computeTemeToPseudoFixedMatrix(JulianDate date,
Matrix3 result)
Computes a rotation matrix to transform a point or vector from True Equator Mean Equinox (TEME) axes to
the pseudo-fixed axes at a given time.
|
static Matrix4 |
eastNorthUpToFixedFrame(Cartesian3 origin)
Computes a 4x4 transformation matrix from a reference frame with an east-north-up axes centered at the provided
origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
eastNorthUpToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid)
Computes a 4x4 transformation matrix from a reference frame with an east-north-up axes centered at the provided
origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
eastNorthUpToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid,
Matrix4 result)
Computes a 4x4 transformation matrix from a reference frame with an east-north-up axes centered at the provided
origin to the provided ellipsoid's fixed reference frame.
|
static HeadingPitchRoll |
fixedFrameToHeadingPitchRoll(Matrix4 transform)
Computes heading-pitch-roll angles from a transform in a particular reference frame.
|
static HeadingPitchRoll |
fixedFrameToHeadingPitchRoll(Matrix4 transform,
Ellipsoid ellipsoid)
Computes heading-pitch-roll angles from a transform in a particular reference frame.
|
static HeadingPitchRoll |
fixedFrameToHeadingPitchRoll(Matrix4 transform,
Ellipsoid ellipsoid,
Transforms.LocalFrameToFixedFrame fixedFrameTransform)
Computes heading-pitch-roll angles from a transform in a particular reference frame.
|
static HeadingPitchRoll |
fixedFrameToHeadingPitchRoll(Matrix4 transform,
Ellipsoid ellipsoid,
Transforms.LocalFrameToFixedFrame fixedFrameTransform,
HeadingPitchRoll result)
Computes heading-pitch-roll angles from a transform in a particular reference frame.
|
static Quaternion |
headingPitchRollQuaternion(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll)
Computes a quaternion from a reference frame with axes computed from the heading-pitch-roll angles centered at the
provided origin.
|
static Quaternion |
headingPitchRollQuaternion(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll,
Ellipsoid ellipsoid)
Computes a quaternion from a reference frame with axes computed from the heading-pitch-roll angles centered at the
provided origin.
|
static Quaternion |
headingPitchRollQuaternion(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll,
Ellipsoid ellipsoid,
Quaternion result)
Computes a quaternion from a reference frame with axes computed from the heading-pitch-roll angles centered at the
provided origin.
|
static Quaternion |
headingPitchRollQuaternion(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll,
Ellipsoid ellipsoid,
Transforms.LocalFrameToFixedFrame transform,
Quaternion result)
Computes a quaternion from a reference frame with axes computed from the heading-pitch-roll angles centered at the
provided origin.
|
static Matrix4 |
headingPitchRollToFixedFrame(Cartesian3 origin,
HeadingPitchRoll headingPitchRol)
Computes a 4x4 transformation matrix from a reference frame with axes computed from the heading-pitch-roll angles
centered at the provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
headingPitchRollToFixedFrame(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll,
Ellipsoid ellipsoid)
Computes a 4x4 transformation matrix from a reference frame with axes computed from the heading-pitch-roll angles
centered at the provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
headingPitchRollToFixedFrame(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll,
Ellipsoid ellipsoid,
Transforms.LocalFrameToFixedFrame fixedFrameTransform)
Computes a 4x4 transformation matrix from a reference frame with axes computed from the heading-pitch-roll angles
centered at the provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
headingPitchRollToFixedFrame(Cartesian3 origin,
HeadingPitchRoll headingPitchRoll,
Ellipsoid ellipsoid,
Transforms.LocalFrameToFixedFrame fixedFrameTransform,
Matrix4 result)
Computes a 4x4 transformation matrix from a reference frame with axes computed from the heading-pitch-roll angles
centered at the provided origin to the provided ellipsoid's fixed reference frame.
|
static Transforms.LocalFrameToFixedFrame |
localFrameToFixedFrameGenerator(String firstAxis,
String secondAxis)
Generates a function that computes a 4x4 transformation matrix from a reference frame centered at the provided
origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northEastDownToFixedFrame(Cartesian3 origin)
Computes a 4x4 transformation matrix from a reference frame with an north-east-down axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northEastDownToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid)
Computes a 4x4 transformation matrix from a reference frame with an north-east-down axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northEastDownToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid,
Matrix4 result)
Computes a 4x4 transformation matrix from a reference frame with an north-east-down axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northUpEastToFixedFrame(Cartesian3 origin)
Computes a 4x4 transformation matrix from a reference frame with an north-up-east axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northUpEastToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid)
Computes a 4x4 transformation matrix from a reference frame with an north-up-east axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northUpEastToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid,
Matrix4 result)
Computes a 4x4 transformation matrix from a reference frame with an north-up-east axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northWestUpToFixedFrame(Cartesian3 origin)
Computes a 4x4 transformation matrix from a reference frame with an north-west-up axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northWestUpToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid)
Computes a 4x4 transformation matrix from a reference frame with an north-west-up axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Matrix4 |
northWestUpToFixedFrame(Cartesian3 origin,
Ellipsoid ellipsoid,
Matrix4 result)
Computes a 4x4 transformation matrix from a reference frame with an north-west-up axes centered at the
provided origin to the provided ellipsoid's fixed reference frame.
|
static Cartesian2 |
pointToWindowCoordinates(Matrix4 modelViewProjectionMatrix,
Matrix4 viewportTransformation,
Cartesian3 point)
Transform a point from model coordinates to window coordinates.
|
static Cartesian2 |
pointToWindowCoordinates(Matrix4 modelViewProjectionMatrix,
Matrix4 viewportTransformation,
Cartesian3 point,
Cartesian2 result)
Transform a point from model coordinates to window coordinates.
|
static Promise<Void,Void> |
preloadIcrfFixed(TimeInterval timeInterval)
Preloads the data necessary to transform between the ICRF and Fixed axes, in either direction, over a given interval.
|
@JsMethod public static Matrix3 computeFixedToIcrfMatrix(JulianDate date)
date
- The time at which to compute the rotation matrix.preloadIcrfFixed(org.cesiumjs.cs.core.TimeInterval)
@JsMethod public static Matrix3 computeFixedToIcrfMatrix(JulianDate date, Matrix3 result)
date
- The time at which to compute the rotation matrix.result
- The object onto which to store the result. If this parameter is not specified, a new instance is created and returned.preloadIcrfFixed(org.cesiumjs.cs.core.TimeInterval)
@JsMethod public static Matrix3 computeIcrfToFixedMatrix(JulianDate date)
date
- The time at which to compute the rotation matrix.preloadIcrfFixed(org.cesiumjs.cs.core.TimeInterval)
@JsMethod public static Matrix3 computeIcrfToFixedMatrix(JulianDate date, Matrix3 result)
date
- The time at which to compute the rotation matrix.result
- The object onto which to store the result. If this parameter is not specified, a new instance is created and returned.preloadIcrfFixed(org.cesiumjs.cs.core.TimeInterval)
@JsMethod public static Matrix3 computeTemeToPseudoFixedMatrix(JulianDate date)
date
- The time at which to compute the rotation matrix.@JsMethod public static Matrix3 computeTemeToPseudoFixedMatrix(JulianDate date, Matrix3 result)
date
- The time at which to compute the rotation matrix.result
- The object onto which to store the result.@JsMethod public static Matrix4 eastNorthUpToFixedFrame(Cartesian3 origin)
origin
- The center point of the local reference frame.@JsMethod public static Matrix4 eastNorthUpToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid)
origin
- The center point of the local reference frame.ellipsoid
- Ellipsoid.WGS84 optional The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
@JsMethod public static Matrix4 eastNorthUpToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid, Matrix4 result)
origin
- The center point of the local reference frame.ellipsoid
- Ellipsoid.WGS84 optional The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public static HeadingPitchRoll fixedFrameToHeadingPitchRoll(Matrix4 transform)
transform
- The transform@JsMethod public static HeadingPitchRoll fixedFrameToHeadingPitchRoll(Matrix4 transform, Ellipsoid ellipsoid)
transform
- The transformellipsoid
- The ellipsoid whose fixed frame is used in the transformation.@JsMethod public static HeadingPitchRoll fixedFrameToHeadingPitchRoll(Matrix4 transform, Ellipsoid ellipsoid, Transforms.LocalFrameToFixedFrame fixedFrameTransform)
transform
- The transformellipsoid
- The ellipsoid whose fixed frame is used in the transformation.fixedFrameTransform
- A 4x4 transformation matrix from a reference frame to the provided ellipsoid's fixed reference frame.@JsMethod public static HeadingPitchRoll fixedFrameToHeadingPitchRoll(Matrix4 transform, Ellipsoid ellipsoid, Transforms.LocalFrameToFixedFrame fixedFrameTransform, HeadingPitchRoll result)
transform
- The transformellipsoid
- The ellipsoid whose fixed frame is used in the transformation.fixedFrameTransform
- A 4x4 transformation matrix from a reference frame to the provided ellipsoid's fixed reference frame.result
- The object onto which to store the result.@JsMethod public static Quaternion headingPitchRollQuaternion(Cartesian3 origin, HeadingPitchRoll headingPitchRoll)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.@JsMethod public static Quaternion headingPitchRollQuaternion(Cartesian3 origin, HeadingPitchRoll headingPitchRoll, Ellipsoid ellipsoid)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
@JsMethod public static Quaternion headingPitchRollQuaternion(Cartesian3 origin, HeadingPitchRoll headingPitchRoll, Ellipsoid ellipsoid, Quaternion result)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public static Quaternion headingPitchRollQuaternion(Cartesian3 origin, HeadingPitchRoll headingPitchRoll, Ellipsoid ellipsoid, Transforms.LocalFrameToFixedFrame transform, Quaternion result)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
transform
- A 4x4 transformation matrix from a reference frame to the provided ellipsoid's fixed reference frame.result
- The object onto which to store the result.@JsMethod public static Matrix4 headingPitchRollToFixedFrame(Cartesian3 origin, HeadingPitchRoll headingPitchRol)
origin
- The center point of the local reference frame.@JsMethod public static Matrix4 headingPitchRollToFixedFrame(Cartesian3 origin, HeadingPitchRoll headingPitchRoll, Ellipsoid ellipsoid)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation. Default Ellipsoid.WGS84()
@JsMethod public static Matrix4 headingPitchRollToFixedFrame(Cartesian3 origin, HeadingPitchRoll headingPitchRoll, Ellipsoid ellipsoid, Transforms.LocalFrameToFixedFrame fixedFrameTransform)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation. Default Ellipsoid.WGS84()
@JsMethod public static Matrix4 headingPitchRollToFixedFrame(Cartesian3 origin, HeadingPitchRoll headingPitchRoll, Ellipsoid ellipsoid, Transforms.LocalFrameToFixedFrame fixedFrameTransform, Matrix4 result)
origin
- The center point of the local reference frame.headingPitchRoll
- The heading, pitch, and roll.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation. Default Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public static Matrix4 northEastDownToFixedFrame(Cartesian3 origin)
origin
- The center point of the local reference frame.@JsMethod public static Matrix4 northEastDownToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid)
origin
- The center point of the local reference frame.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
@JsMethod public static Matrix4 northEastDownToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid, Matrix4 result)
origin
- The center point of the local reference frame.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public static Matrix4 northUpEastToFixedFrame(Cartesian3 origin)
origin
- The center point of the local reference frame.@JsMethod public static Matrix4 northUpEastToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid)
origin
- The center point of the local reference frame.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
@JsMethod public static Matrix4 northUpEastToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid, Matrix4 result)
origin
- The center point of the local reference frame.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public static Matrix4 northWestUpToFixedFrame(Cartesian3 origin)
origin
- The center point of the local reference frame.@JsMethod public static Matrix4 northWestUpToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid)
origin
- The center point of the local reference frame.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
@JsMethod public static Matrix4 northWestUpToFixedFrame(Cartesian3 origin, Ellipsoid ellipsoid, Matrix4 result)
origin
- The center point of the local reference frame.ellipsoid
- The ellipsoid whose fixed frame is used in the transformation.
Default: Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public static Transforms.LocalFrameToFixedFrame localFrameToFixedFrameGenerator(String firstAxis, String secondAxis)
firstAxis
- name of the first axis of the local reference frame. Must be 'east', 'north', 'up', 'west', 'south' or 'down'.secondAxis
- name of the second axis of the local reference frame. Must be 'east', 'north', 'up', 'west', 'south' or 'down'.@JsMethod public static Cartesian2 pointToWindowCoordinates(Matrix4 modelViewProjectionMatrix, Matrix4 viewportTransformation, Cartesian3 point)
modelViewProjectionMatrix
- The 4x4 model-view-projection matrix.viewportTransformation
- The 4x4 viewport transformation.point
- The point to transform.@JsMethod public static Cartesian2 pointToWindowCoordinates(Matrix4 modelViewProjectionMatrix, Matrix4 viewportTransformation, Cartesian3 point, Cartesian2 result)
modelViewProjectionMatrix
- The 4x4 model-view-projection matrix.viewportTransformation
- The 4x4 viewport transformation.point
- The point to transform.result
- The object onto which to store the result.@JsMethod public static Promise<Void,Void> preloadIcrfFixed(TimeInterval timeInterval)
timeInterval
- The interval to preload.computeIcrfToFixedMatrix(org.cesiumjs.cs.core.JulianDate)
,
computeFixedToIcrfMatrix(org.cesiumjs.cs.core.JulianDate)
Copyright © 2019. All rights reserved.