Class Transform3DVector_f


  • public class Transform3DVector_f
    extends java.lang.Object
    this 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 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 transform
        rot - [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 transform
        rot - [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

      • 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:
        toString in class java.lang.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