Package georegression.struct.se
Class Se2_F32
java.lang.Object
georegression.struct.se.Se2_F32
- All Implemented Interfaces:
InvertibleTransform<Se2_F32>,SpecialEuclidean<Se2_F32>,Serializable
@Generated("georegression.struct.se.Se2_F64")
public class Se2_F32
extends 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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSe2_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
Modifier and TypeMethodDescriptionComputes a transform which is the equivalent to applying 'this' then the 'second' transform.copy()Creates a new instance of the same SpecialEuclidean as this class.floatintReturns the dimension of the space which this transform operates on.floatfloatgetX()floatgetY()floatgetYaw()Computes a transform which is the inverse of this transform.voidprint()voidreset()Sets the transform to its initial state of no transform.setTo(float x, float y, float yaw) setTo(float x, float y, float cosYaw, float sinYaw) 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) toString()voidzero()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface georegression.struct.InvertibleTransform
concatInvert, invertConcat
-
Field Details
-
T
-
c
public float c -
s
public float s
-
-
Constructor Details
-
Se2_F32
-
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 Details
-
setTo
-
setTo
-
zero
public void zero() -
setTo
Description copied from interface:InvertibleTransformAssigns 'this' to the value of target.- Specified by:
setToin interfaceInvertibleTransform<Se2_F32>- Parameters:
target- The new value of 'this'.- Returns:
- A reference to 'this' to enable chaining
-
getX
public float getX() -
setX
public void setX(float x) -
getY
public float getY() -
setY
public void setY(float y) -
getTranslation
-
setTranslation
-
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
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
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
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
-
toString
-
print
public void print()
-