java.lang.Object
eu.hansolo.fx.geometry.transform.BaseTransform
eu.hansolo.fx.geometry.transform.AffineBase
eu.hansolo.fx.geometry.transform.Affine
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.hansolo.fx.geometry.transform.BaseTransform
BaseTransform.Degree -
Field Summary
Fields inherited from class eu.hansolo.fx.geometry.transform.AffineBase
APPLY_2D_DELTA_MASK, APPLY_2D_MASK, APPLY_IDENTITY, APPLY_SCALE, APPLY_SHEAR, APPLY_TRANSLATE, HI_IDENTITY, HI_SCALE, HI_SHEAR, HI_SHIFT, HI_TRANSLATE, mxt, mxx, mxy, myt, myx, myy, state, typeFields inherited from class eu.hansolo.fx.geometry.transform.BaseTransform
IDENTITY_TRANSFORM, TYPE_AFFINE_3D, TYPE_AFFINE2D_MASK, TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE, TYPE_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionAffine()Affine(double mxx, double myx, double mxy, double myy, double mxt, double myt) Affine(BaseTransform Tx) -
Method Summary
Modifier and TypeMethodDescriptioncopy()eu.hansolo.toolboxfx.geom.PointdeltaTransform(eu.hansolo.toolboxfx.geom.Point ptSrc, eu.hansolo.toolboxfx.geom.Point ptDst) deriveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt) deriveWithPreTranslation(double mxt, double myt) deriveWithTranslation(double mxt, double myt) booleanvoidvoidquadrantRotate(int numquadrants) voidquadrantRotate(int numquadrants, double anchorx, double anchory) voidrestoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) voidrestoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) voidrotate(double vecx, double vecy) voidrotate(double theta, double anchorx, double anchory) voidrotate(double vecx, double vecy, double anchorx, double anchory) voidsetToQuadrantRotation(int numquadrants) voidsetToQuadrantRotation(int numquadrants, double anchorx, double anchory) voidsetToRotation(double theta) voidsetToRotation(double vecx, double vecy) voidsetToRotation(double theta, double anchorx, double anchory) voidsetToRotation(double vecx, double vecy, double anchorx, double anchory) voidsetToScale(double sx, double sy) voidsetToTranslation(double tx, double ty) voidvoidtransform(eu.hansolo.toolboxfx.geom.Point[] ptSrc, int srcOff, eu.hansolo.toolboxfx.geom.Point[] ptDst, int dstOff, int numPts) Methods inherited from class eu.hansolo.fx.geometry.transform.AffineBase
calculateType, concatenate, createTransformedShape, deltaTransform, getDeterminant, getMxt, getMxx, getMxy, getMyt, getMyx, getMyy, getType, inverseDeltaTransform, inverseTransform, inverseTransform, inverseTransform, inverseTransform, invert, isIdentity, isTranslateOrIdentity, rotate, rotate180, rotate270, rotate90, scale, setToIdentity, setToShear, setTransform, shear, stateError, transform, transform, transform, transform, transform, translate, updateStateMethods inherited from class eu.hansolo.fx.geometry.transform.BaseTransform
getInstance, getInstance, getMxz, getMyz, getMzt, getMzx, getMzy, getMzz, getRotateInstance, getScaleInstance, getTranslateInstance
-
Constructor Details
-
Affine
public Affine() -
Affine
-
Affine
public Affine(double mxx, double myx, double mxy, double myy, double mxt, double myt)
-
-
Method Details
-
getDegree
- Specified by:
getDegreein classBaseTransform
-
rotate
public void rotate(double theta, double anchorx, double anchory) -
rotate
public void rotate(double vecx, double vecy) -
rotate
public void rotate(double vecx, double vecy, double anchorx, double anchory) -
quadrantRotate
public void quadrantRotate(int numquadrants) -
quadrantRotate
public void quadrantRotate(int numquadrants, double anchorx, double anchory) -
setToTranslation
public void setToTranslation(double tx, double ty) -
setToRotation
public void setToRotation(double theta) -
setToRotation
public void setToRotation(double theta, double anchorx, double anchory) -
setToRotation
public void setToRotation(double vecx, double vecy) -
setToRotation
public void setToRotation(double vecx, double vecy, double anchorx, double anchory) -
setToQuadrantRotation
public void setToQuadrantRotation(int numquadrants) -
setToQuadrantRotation
public void setToQuadrantRotation(int numquadrants, double anchorx, double anchory) -
setToScale
public void setToScale(double sx, double sy) -
setTransform
- Specified by:
setTransformin classBaseTransform
-
preConcatenate
-
createInverse
- Specified by:
createInversein classBaseTransform- Throws:
NonInvertibleTransformException
-
transform
public void transform(eu.hansolo.toolboxfx.geom.Point[] ptSrc, int srcOff, eu.hansolo.toolboxfx.geom.Point[] ptDst, int dstOff, int numPts) -
deltaTransform
public eu.hansolo.toolboxfx.geom.Point deltaTransform(eu.hansolo.toolboxfx.geom.Point ptSrc, eu.hansolo.toolboxfx.geom.Point ptDst) -
restoreTransform
public void restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) - Specified by:
restoreTransformin classBaseTransform
-
restoreTransform
public void restoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) - Specified by:
restoreTransformin classBaseTransform
-
deriveWithTranslation
- Specified by:
deriveWithTranslationin classBaseTransform
-
deriveWithPreTranslation
- Specified by:
deriveWithPreTranslationin classBaseTransform
-
deriveWithConcatenation
public BaseTransform deriveWithConcatenation(double mxx, double myx, double mxy, double myy, double mxt, double myt) - Specified by:
deriveWithConcatenationin classBaseTransform
-
deriveWithConcatenation
- Specified by:
deriveWithConcatenationin classBaseTransform
-
deriveWithPreConcatenation
- Specified by:
deriveWithPreConcatenationin classBaseTransform
-
deriveWithNewTransform
- Specified by:
deriveWithNewTransformin classBaseTransform
-
copy
- Specified by:
copyin classBaseTransform
-
equals
- Overrides:
equalsin classBaseTransform
-