public interface StaticTransform extends TimeStamped
Transform
Modifier and Type | Method and Description |
---|---|
static StaticTransform |
compose(AbsoluteDate date,
StaticTransform first,
StaticTransform second)
Build a transform by combining two existing ones.
|
static Rotation |
compositeRotation(StaticTransform first,
StaticTransform second)
Compute a composite rotation.
|
static Vector3D |
compositeTranslation(StaticTransform first,
StaticTransform second)
Compute a composite translation.
|
static StaticTransform |
getIdentity()
Get the identity static transform.
|
StaticTransform |
getInverse()
Get the inverse transform of the instance.
|
Rotation |
getRotation()
Get the underlying elementary rotation.
|
Vector3D |
getTranslation()
Get the underlying elementary translation.
|
static StaticTransform |
of(AbsoluteDate date,
Rotation rotation)
Create a new static transform from a rotation and zero translation.
|
static StaticTransform |
of(AbsoluteDate date,
Vector3D translation)
Create a new static transform from a translation and rotation.
|
static StaticTransform |
of(AbsoluteDate date,
Vector3D translation,
Rotation rotation)
Create a new static transform from a translation and rotation.
|
default Line |
transformLine(Line line)
Transform a line.
|
default <T extends CalculusFieldElement<T>> |
transformPosition(FieldVector3D<T> position)
Transform a position vector (including translation effects).
|
default Vector3D |
transformPosition(Vector3D position)
Transform a position vector (including translation effects).
|
default <T extends CalculusFieldElement<T>> |
transformVector(FieldVector3D<T> vector)
Transform a vector (ignoring translation effects).
|
default Vector3D |
transformVector(Vector3D vector)
Transform a vector (ignoring translation effects).
|
getDate
static StaticTransform getIdentity()
default Vector3D transformPosition(Vector3D position)
position
- vector to transformdefault <T extends CalculusFieldElement<T>> FieldVector3D<T> transformPosition(FieldVector3D<T> position)
T
- the type of the field elementsposition
- vector to transformdefault Vector3D transformVector(Vector3D vector)
vector
- vector to transformdefault <T extends CalculusFieldElement<T>> FieldVector3D<T> transformVector(FieldVector3D<T> vector)
T
- the type of the field elementsvector
- vector to transformdefault Line transformLine(Line line)
line
- to transformVector3D getTranslation()
A transform can be uniquely represented as an elementary translation followed by an elementary rotation. This method returns this unique elementary translation.
Rotation getRotation()
A transform can be uniquely represented as an elementary translation followed by an elementary rotation. This method returns this unique elementary rotation.
StaticTransform getInverse()
static StaticTransform compose(AbsoluteDate date, StaticTransform first, StaticTransform second)
Note that the dates of the two existing transformed are ignored, and the combined transform date is set to the date supplied in this constructor without any attempt to shift the raw transforms. This is a design choice allowing user full control of the combination.
date
- date of the transformfirst
- first transform appliedsecond
- second transform appliedfirst
, then second
.of(AbsoluteDate, Vector3D, Rotation)
static Vector3D compositeTranslation(StaticTransform first, StaticTransform second)
first
- first applied transformsecond
- second applied transformstatic Rotation compositeRotation(StaticTransform first, StaticTransform second)
first
- first applied transformsecond
- second applied transformstatic StaticTransform of(AbsoluteDate date, Rotation rotation)
date
- of translation.rotation
- to apply after the translation. That is after translating
applying this rotation produces positions expressed in
the new frame.of(AbsoluteDate, Vector3D, Rotation)
static StaticTransform of(AbsoluteDate date, Vector3D translation)
date
- of translation.translation
- to apply, expressed in the old frame. That is, the
opposite of the coordinates of the new origin in the
old frame.of(AbsoluteDate, Vector3D, Rotation)
static StaticTransform of(AbsoluteDate date, Vector3D translation, Rotation rotation)
date
- of translation.translation
- to apply, expressed in the old frame. That is, the
opposite of the coordinates of the new origin in the
old frame.rotation
- to apply after the translation. That is after
translating applying this rotation produces positions
expressed in the new frame.compose(AbsoluteDate, StaticTransform, StaticTransform)
,
of(AbsoluteDate, Rotation)
,
of(AbsoluteDate, Vector3D)
Copyright © 2002-2022 CS GROUP. All rights reserved.