Class Rotation2Df


  • public class Rotation2Df
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()  
      SWIGTYPE_p_Eigen__Rotation2DT_float_t e()
      Returns a Eigen 2x2 matrix \mathbf{M}\in SO(2) that represents this rotation

      boolean equals​(Rotation2Df rhs)
      Comparison operator.

      The comparison operator makes a element wise comparison.
      Returns true only if all elements are equal.

      float get​(long row, long column)  
      static long getCPtr​(Rotation2Df obj)  
      static Rotation2Df identity()  
      Rotation2Df multiply​(Rotation2Df bRc)
      Calculates \robabx{a}{c}{\mathbf{R}} = \robabx{a}{b}{\mathbf{R}} \robabx{b}{c}{\mathbf{R}}
      where this object is \robabx{a}{b}{\mathbf{R}} .

      Vector2Df multiply​(Vector2Df bVc)
      Calculates \robabx{a}{c}{\mathbf{v}} = \robabx{a}{b}{\mathbf{R}} \robabx{b}{c}{\mathbf{v}}
      where this object is \robabx{a}{b}{\mathbf{R}} .

      boolean notEqual​(Rotation2Df rhs)
      Comparison operator.

      The comparison operator makes a element wise comparison.
      Returns true if any of the elements are different.

      void set​(long row, long column, float d)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Rotation2Df

        public Rotation2Df​(long cPtr,
                           boolean cMemoryOwn)
      • Rotation2Df

        public Rotation2Df()
        A rotation matrix with uninitialized storage.
      • Rotation2Df

        public Rotation2Df​(float r11,
                           float r12,
                           float r21,
                           float r22)
      • Rotation2Df

        public Rotation2Df​(float theta)
      • Rotation2Df

        public Rotation2Df​(Vector2Df i)
        Construct an initialized 2x2 rotation matrix.

        The second of column of the matrix is deduced from the first column.

        Parameters:
        i - [in] The first column of the rotation matrix.
    • Method Detail

      • getCPtr

        public static long getCPtr​(Rotation2Df obj)
      • delete

        public void delete()
      • get

        public float get​(long row,
                         long column)
      • set

        public void set​(long row,
                        long column,
                        float d)
      • equals

        public boolean equals​(Rotation2Df rhs)
        Comparison operator.

        The comparison operator makes a element wise comparison.
        Returns true only if all elements are equal.

        Parameters:
        rhs - [in] Rotation2D to compare with
        Returns:
        True if equal.
      • notEqual

        public boolean notEqual​(Rotation2Df rhs)
        Comparison operator.

        The comparison operator makes a element wise comparison.
        Returns true if any of the elements are different.

        Parameters:
        rhs - [in] Rotation2D to compare with
        Returns:
        True if not equal.
      • multiply

        public Rotation2Df multiply​(Rotation2Df bRc)
        Calculates \robabx{a}{c}{\mathbf{R}} = \robabx{a}{b}{\mathbf{R}} \robabx{b}{c}{\mathbf{R}}
        where this object is \robabx{a}{b}{\mathbf{R}} .

        Parameters:
        bRc - [in] \robabx{b}{c}{\mathbf{R}}

        Returns:
        \robabx{a}{c}{\mathbf{R}}
      • multiply

        public Vector2Df multiply​(Vector2Df bVc)
        Calculates \robabx{a}{c}{\mathbf{v}} = \robabx{a}{b}{\mathbf{R}} \robabx{b}{c}{\mathbf{v}}
        where this object is \robabx{a}{b}{\mathbf{R}} .

        Parameters:
        bVc - [in] \robabx{b}{c}{\mathbf{v}}

        Returns:
        \robabx{a}{c}{\mathbf{v}}
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object