Package io.github.humbleui.skija
Class RSXform
- java.lang.Object
-
- io.github.humbleui.skija.RSXform
-
public class RSXform extends java.lang.ObjectA compressed form of a rotation+scale matrix.
[ fSCos -fSSin fTx ] [ fSSin fSCos fTy ] [ 0 0 1 ]
-
-
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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)floatgetScos()floatgetSsin()floatgetTx()floatgetTy()inthashCode()static RSXformmakeFromRadians(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.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-