Class RSXform


  • public class RSXform
    extends java.lang.Object

    A compressed form of a rotation+scale matrix.

    [ fSCos     -fSSin    fTx ]
      [ fSSin      fSCos    fTy ]
      [     0          0      1 ]
    • Field Summary

      Fields 
      Modifier and Type Field Description
      float _scos  
      float _ssin  
      float _tx  
      float _ty  
    • Constructor Summary

      Constructors 
      Constructor Description
      RSXform​(float scos, float ssin, float tx, float ty)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      float getScos()  
      float getSsin()  
      float getTx()  
      float getTy()  
      int hashCode()  
      static RSXform makeFromRadians​(float scale, float radians, float tx, float ty, float ax, float ay)
      Initialize a new xform based on the scale, rotation (in radians), final tx,ty location and anchor-point ax,ay within the src quad.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _scos

        @Internal
        public final float _scos
      • _ssin

        @Internal
        public final float _ssin
      • _tx

        @Internal
        public final float _tx
      • _ty

        @Internal
        public final float _ty
    • Constructor Detail

      • RSXform

        public RSXform​(float scos,
                       float ssin,
                       float tx,
                       float ty)
    • Method Detail

      • makeFromRadians

        public static RSXform makeFromRadians​(float scale,
                                              float radians,
                                              float tx,
                                              float ty,
                                              float ax,
                                              float ay)
        Initialize a new xform based on the scale, rotation (in radians), final tx,ty location and anchor-point ax,ay within the src quad. Note: the anchor point is not normalized (e.g. 0...1) but is in pixels of the src image.
      • getScos

        public float getScos()
      • getSsin

        public float getSsin()
      • getTx

        public float getTx()
      • getTy

        public float getTy()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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