Package org.robwork.sdurw_math
Class Transform3DVector_f
- java.lang.Object
-
- org.robwork.sdurw_math.Transform3DVector_f
-
public class Transform3DVector_f extends java.lang.Objectthis class is a interpolatable Transform3D, consisting of a Vecor3D and a Quaternion.
It is implemented to be very Interconvertable with a Transform3D, and allow operations souch
as Transform * scalar and Transform + Transform.
-
-
Constructor Summary
Constructors Constructor Description Transform3DVector_f()default constructorTransform3DVector_f(long cPtr, boolean cMemoryOwn)Transform3DVector_f(EigenVector7f vec)Constuct a Transform3DVector from a EigenVectorTransform3DVector_f(Transform3Df t3d)Constuct a Transform3DVector from a Transform3DTransform3DVector_f(Vector3Df vec, Quaternion_f rot)Constuct a Transformation matrix as a VectorTransform3DVector_f(Vector3Df vec, Rotation3DVectorf rot)Constuct a Transformation matrix as a Vector
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Transform3DVector_fadd(float rhs)Scalar additionTransform3DVector_fadd(Quaternion_f rhs)add a Quaternion to the rotation of the transformTransform3DVector_fadd(Transform3DVector_f rhs)element wise add two Transform3DVectorsTransform3DVector_fadd(Vector3Df rhs)add a Vector3D to the position of the transformTransform3DVector_faddAssign(Quaternion_f rhs)add to the Roation of the transformTransform3DVector_faddAssign(Transform3DVector_f rhs)add to the transformTransform3DVector_faddAssign(Vector3Df rhs)add to the position of the transformTransform3DVector_fassign(EigenVector7f rhs)copy the transform from an eigen vectorTransform3DVector_fassign(Quaternion_f rhs)Override the Roation of the transformTransform3DVector_fassign(Transform3Df rhs)convert and copy the transformTransform3DVector_fassign(Transform3DVector_f rhs)copy the transformTransform3DVector_fassign(Vector3Df rhs)Override the position of the transformvoiddelete()Transform3DVector_fdivide(float rhs)Scalar devisionTransform3DVector_fdivide(Quaternion_f rhs)element wise devide a Quaternion with the Quaternion rotation of the transformEigenVector7fe()get the underling eigen typefloatget(long i)static longgetCPtr(Transform3DVector_f obj)Transform3DVector_fmultiply(float rhs)Scalar multiplicationTransform3DVector_fmultiply(Quaternion_f rhs)element wise multiply a Quaternion with the Quaternion rotation of the transformVector3Dfmultiply(Vector3Df rhs)Matrix vector multiplication with Vector3D.voidset(long i, float d)longsize()get the size.Transform3DVector_fsubtract(float rhs)Scalar subtractionTransform3DVector_fsubtract(Quaternion_f rhs)subtract a Quaternion from the rotation of the transformTransform3DVector_fsubtract(Transform3DVector_f rhs)element wise subtract two Transform3DVectorsTransform3DVector_fsubtract(Vector3Df rhs)subtract a Vector3D from the position of the transformTransform3DVector_fsubtractAssign(Quaternion_f rhs)add to the Roation of the transformTransform3DVector_fsubtractAssign(Transform3DVector_f rhs)subtract from the transformTransform3DVector_fsubtractAssign(Vector3Df rhs)subtract from the position of the transformEAAftoEAA()convert the rotation part to EAAQuaternion_ftoQuaternion()get the Rotation of the transformjava.lang.StringtoString()Transform3DftoTransform3D()Returns the corresponding Trandforma3D matrixVector3DftoVector3D()get the position Vector of the transform
-
-
-
Constructor Detail
-
Transform3DVector_f
public Transform3DVector_f(long cPtr, boolean cMemoryOwn)
-
Transform3DVector_f
public Transform3DVector_f()
default constructor
-
Transform3DVector_f
public Transform3DVector_f(Vector3Df vec, Quaternion_f rot)
Constuct a Transformation matrix as a Vector- Parameters:
vec- [in] the vector of the transformrot- [in] the rotation of the transform
-
Transform3DVector_f
public Transform3DVector_f(Vector3Df vec, Rotation3DVectorf rot)
Constuct a Transformation matrix as a Vector- Parameters:
vec- [in] the vector of the transformrot- [in] the rotation of the transform
-
Transform3DVector_f
public Transform3DVector_f(Transform3Df t3d)
Constuct a Transform3DVector from a Transform3D- Parameters:
t3d- [in] Transform3D
-
Transform3DVector_f
public Transform3DVector_f(EigenVector7f vec)
Constuct a Transform3DVector from a EigenVector- Parameters:
vec- [in] Transform3D
-
-
Method Detail
-
getCPtr
public static long getCPtr(Transform3DVector_f obj)
-
delete
public void delete()
-
add
public Transform3DVector_f add(Vector3Df rhs)
add a Vector3D to the position of the transform- Parameters:
rhs- [in] the right hand side value- Returns:
- result of devision
-
subtract
public Transform3DVector_f subtract(Vector3Df rhs)
subtract a Vector3D from the position of the transform- Parameters:
rhs- [in] the right hand side value- Returns:
- result of devision
-
multiply
public Vector3Df multiply(Vector3Df rhs)
Matrix vector multiplication with Vector3D. Same as Transform3D<> * Vector3D<>;- Parameters:
rhs- [in] the right hand side value- Returns:
- result of multiplication
-
add
public Transform3DVector_f add(Quaternion_f rhs)
add a Quaternion to the rotation of the transform- Parameters:
rhs- [in] the right hand side value- Returns:
- result of devision
-
subtract
public Transform3DVector_f subtract(Quaternion_f rhs)
subtract a Quaternion from the rotation of the transform- Parameters:
rhs- [in] the right hand side value- Returns:
- result of devision
-
divide
public Transform3DVector_f divide(Quaternion_f rhs)
element wise devide a Quaternion with the Quaternion rotation of the transform- Parameters:
rhs- [in] the right hand side value- Returns:
- result of devision
-
multiply
public Transform3DVector_f multiply(Quaternion_f rhs)
element wise multiply a Quaternion with the Quaternion rotation of the transform- Parameters:
rhs- [in] the right hand side value- Returns:
- result of multiplication
-
add
public Transform3DVector_f add(Transform3DVector_f rhs)
element wise add two Transform3DVectors- Parameters:
rhs- [in] the Transform3D vector to be added with- Returns:
- the sum of the two objects
-
subtract
public Transform3DVector_f subtract(Transform3DVector_f rhs)
element wise subtract two Transform3DVectors- Parameters:
rhs- [in] the Transform3D vector to be subtracted with- Returns:
- the difference of the two objects
-
multiply
public Transform3DVector_f multiply(float rhs)
Scalar multiplication- Parameters:
rhs- [in] the scalar to multiply with- Returns:
- product of the multiplication
-
add
public Transform3DVector_f add(float rhs)
Scalar addition- Parameters:
rhs- [in] the scalar to add- Returns:
- the sum
-
subtract
public Transform3DVector_f subtract(float rhs)
Scalar subtraction- Parameters:
rhs- [in] the scalar to subtract- Returns:
- the difference
-
divide
public Transform3DVector_f divide(float rhs)
Scalar devision- Parameters:
rhs- [in] the scalar to devide with- Returns:
- the result
-
get
public float get(long i)
-
set
public void set(long i, float d)
-
size
public long size()
get the size. Index 0-2 Vector, 3-6 Quaternion- Returns:
- always 7
-
toVector3D
public Vector3Df toVector3D()
get the position Vector of the transform- Returns:
- a copy of the position vector
-
toQuaternion
public Quaternion_f toQuaternion()
get the Rotation of the transform- Returns:
- a copy of the quaternion rotation
-
toEAA
public EAAf toEAA()
convert the rotation part to EAA- Returns:
- toration in EAA form
-
toTransform3D
public Transform3Df toTransform3D()
Returns the corresponding Trandforma3D matrix- Returns:
- The transformation matrix
-
e
public EigenVector7f e()
get the underling eigen type- Returns:
- reference to eigen vector
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
assign
public Transform3DVector_f assign(Transform3DVector_f rhs)
copy the transform- Parameters:
rhs- the transform to copy- Returns:
- a copy of this object
-
addAssign
public Transform3DVector_f addAssign(Transform3DVector_f rhs)
add to the transform- Parameters:
rhs- the transform to be added- Returns:
- a copy of this object
-
subtractAssign
public Transform3DVector_f subtractAssign(Transform3DVector_f rhs)
subtract from the transform- Parameters:
rhs- the transform to be subtracted- Returns:
- a copy of this object
-
assign
public Transform3DVector_f assign(Quaternion_f rhs)
Override the Roation of the transform- Parameters:
rhs- the new rotation- Returns:
- a copy of this object
-
addAssign
public Transform3DVector_f addAssign(Quaternion_f rhs)
add to the Roation of the transform- Parameters:
rhs- the rotation to be added- Returns:
- a copy of this object
-
subtractAssign
public Transform3DVector_f subtractAssign(Quaternion_f rhs)
add to the Roation of the transform- Parameters:
rhs- the rotation to be added- Returns:
- a copy of this object
-
assign
public Transform3DVector_f assign(Transform3Df rhs)
convert and copy the transform- Parameters:
rhs- the transform to copy- Returns:
- a copy of this object
-
assign
public Transform3DVector_f assign(Vector3Df rhs)
Override the position of the transform- Parameters:
rhs- the new position- Returns:
- a copy of this object
-
addAssign
public Transform3DVector_f addAssign(Vector3Df rhs)
add to the position of the transform- Parameters:
rhs- the new position- Returns:
- a copy of this object
-
subtractAssign
public Transform3DVector_f subtractAssign(Vector3Df rhs)
subtract from the position of the transform- Parameters:
rhs- the new position- Returns:
- a copy of this object
-
assign
public Transform3DVector_f assign(EigenVector7f rhs)
copy the transform from an eigen vector- Parameters:
rhs- the transform to copy- Returns:
- a copy of this object
-
-