Class Se2_F32
- java.lang.Object
-
- georegression.struct.se.Se2_F32
-
- All Implemented Interfaces:
- InvertibleTransform<Se2_F32>, SpecialEuclidean<Se2_F32>, java.io.Serializable
public class Se2_F32 extends java.lang.Object implements SpecialEuclidean<Se2_F32>
Special Euclidean transform that has been parameterized with three parameters: translation (x,y) and rotation (yaw). First the rotation is applied then the translation.
Note that this data structure does not specify the units or coordinate frames.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description floatcfloatsVector2D_F32T
-
Constructor Summary
Constructors Constructor and Description Se2_F32()Constructor which initializes it to no transformSe2_F32(float x, float y, float yaw)Se2_F32(float x, float y, float cosYaw, float sinYaw)Se2_F32(GeoTuple2D_F32 T, float yaw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Se2_F32concat(Se2_F32 second, Se2_F32 result)Computes a transform which is the equivalent to applying 'this' then the 'second' transform.Se2_F32copy()Se2_F32createInstance()Creates a new instance of the same SpecialEuclidean as this class.floatgetCosineYaw()intgetDimension()Returns the dimension of the space which this transform operates on.floatgetSineYaw()Vector2D_F32getTranslation()floatgetX()floatgetY()floatgetYaw()Se2_F32invert(Se2_F32 inverse)Computes a transform which is the inverse of this transform.voidprint()voidreset()Sets the transform to its initial state of no transform.voidset(float x, float y, float yaw)voidset(float x, float y, float cosYaw, float sinYaw)voidset(Se2_F32 target)Assigns 'this' to the value of target.voidsetTranslation(float x, float y)voidsetTranslation(Vector2D_F32 tran)voidsetX(float x)voidsetY(float y)voidsetYaw(float yaw)java.lang.StringtoString()
-
-
-
Field Detail
-
T
public Vector2D_F32 T
-
c
public float c
-
s
public float s
-
-
Constructor Detail
-
Se2_F32
public Se2_F32(GeoTuple2D_F32 T, float yaw)
-
Se2_F32
public Se2_F32(float x, float y, float yaw)
-
Se2_F32
public Se2_F32(float x, float y, float cosYaw, float sinYaw)
-
Se2_F32
public Se2_F32()
Constructor which initializes it to no transform
-
-
Method Detail
-
set
public void set(float x, float y, float yaw)
-
set
public void set(float x, float y, float cosYaw, float sinYaw)
-
set
public void set(Se2_F32 target)
Description copied from interface:InvertibleTransformAssigns 'this' to the value of target.- Specified by:
setin interfaceInvertibleTransform<Se2_F32>- Parameters:
target- The new value of 'this'.
-
getX
public float getX()
-
setX
public void setX(float x)
-
getY
public float getY()
-
setY
public void setY(float y)
-
getTranslation
public Vector2D_F32 getTranslation()
-
setTranslation
public void setTranslation(Vector2D_F32 tran)
-
setTranslation
public void setTranslation(float x, float y)
-
getYaw
public float getYaw()
-
setYaw
public void setYaw(float yaw)
-
getCosineYaw
public float getCosineYaw()
-
getSineYaw
public float getSineYaw()
-
getDimension
public int getDimension()
Description copied from interface:InvertibleTransformReturns the dimension of the space which this transform operates on.- Specified by:
getDimensionin interfaceInvertibleTransform<Se2_F32>- Returns:
- space's dimension
-
createInstance
public Se2_F32 createInstance()
Description copied from interface:InvertibleTransformCreates a new instance of the same SpecialEuclidean as this class.- Specified by:
createInstancein interfaceInvertibleTransform<Se2_F32>- Returns:
- A new instance.
-
concat
public Se2_F32 concat(Se2_F32 second, Se2_F32 result)
Description copied from interface:InvertibleTransformComputes a transform which is the equivalent to applying 'this' then the 'second' transform.
For example:
Point A = tran2( tran1( A ) );
Point A = tran12( A );
where tran12 = tran1.concat( tran2 , null );NOTE: 'second', 'result', and 'this' must all be unique instances.
- Specified by:
concatin interfaceInvertibleTransform<Se2_F32>- Parameters:
second- The second transform which is applied. Not modified.result- A transform which is equivalent to applying the first then the second. If null then a new instance is declared. Modified.- Returns:
- The equivalent transform.
-
invert
public Se2_F32 invert(Se2_F32 inverse)
Description copied from interface:InvertibleTransformComputes a transform which is the inverse of this transform. The 'this' matrix can be passed in as an input.
Example:
Point A = tran(B);
Point B = inv(A);
where inv = invert( tran );- Specified by:
invertin interfaceInvertibleTransform<Se2_F32>- Parameters:
inverse- Where the inverse will be stored. If null a new instance is created. Modified.- Returns:
- The inverse transform.
-
reset
public void reset()
Description copied from interface:InvertibleTransformSets the transform to its initial state of no transform.- Specified by:
resetin interfaceInvertibleTransform<Se2_F32>
-
copy
public Se2_F32 copy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
print
public void print()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG