pythagoras.d

## Class AbstractTransform

• ### Constructor Summary

Constructors
Constructor and Description
`AbstractTransform()`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`Transform` `clone()`
Deprecated.
`abstract Transform` `copy()`
Returns a copy of this transform.
`Transform` `rotate(double angle)`
Rotates this transform.
`Vector` `scale()`
Returns the scale vector for this transform.
`Transform` ```scale(double scaleX, double scaleY)```
Scales this transform by the specified amount in the x and y dimensions.
`Transform` `scaleX(double scaleX)`
Scales this transform by the specified amount in the x dimension.
`Transform` `scaleY(double scaleY)`
Scales this transform by the specified amount in the y dimension.
`Transform` `setRotation(double angle)`
Sets the rotation component of this transform.
`Transform` ```setScale(double scaleX, double scaleY)```
Sets the x and y scale of this transform.
`Transform` `setScaleX(double scaleX)`
Sets the x scale of this transform.
`Transform` `setScaleY(double scaleY)`
Sets the y scale of this transform.
`Transform` ```setTransform(double m00, double m01, double m10, double m11, double tx, double ty)```
Sets the affine transform matrix.
`Transform` ```setTranslation(double tx, double ty)```
Sets the translation component of this transform.
`Transform` `setTx(double tx)`
Sets the x-component of this transform's translation.
`Transform` `setTy(double ty)`
Sets the y-component of this transform's translation.
`Transform` `setUniformScale(double scale)`
Sets the uniform scale of this transform.
`Transform` ```shear(double sx, double sy)```
Shears this transform.
`Transform` `shearX(double sx)`
Shears this transform in the x dimension.
`Transform` `shearY(double sy)`
Shears this transform in the y dimension.
`Transform` ```translate(double tx, double ty)```
Translates this transform.
`Transform` `translateX(double tx)`
Translates this transform in the x dimension.
`Transform` `translateY(double ty)`
Translates this transform in the y dimension.
`Vector` `translation()`
Returns the translation vector for this transform.
`Transform` `uniformScale(double scale)`
Scales this transform in a uniform manner by the specified amount.
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Methods inherited from interface pythagoras.d.Transform

`concatenate, generality, get, inverseTransform, inverseTransform, invert, lerp, preConcatenate, rotation, scaleX, scaleY, transform, transform, transform, transform, transformPoint, tx, ty, uniformScale`
• ### Constructor Detail

• #### AbstractTransform

`public AbstractTransform()`
• ### Method Detail

• #### scale

`public Vector scale()`
Description copied from interface: `Transform`
Returns the scale vector for this transform.
Specified by:
`scale` in interface `Transform`
• #### translation

`public Vector translation()`
Description copied from interface: `Transform`
Returns the translation vector for this transform.
Specified by:
`translation` in interface `Transform`
• #### setUniformScale

`public Transform setUniformScale(double scale)`
Description copied from interface: `Transform`
Sets the uniform scale of this transform.
Specified by:
`setUniformScale` in interface `Transform`
Returns:
this instance, for chaining.
• #### setScale

```public Transform setScale(double scaleX,
double scaleY)```
Description copied from interface: `Transform`
Sets the x and y scale of this transform.
Specified by:
`setScale` in interface `Transform`
Returns:
this instance, for chaining.
• #### setScaleX

`public Transform setScaleX(double scaleX)`
Description copied from interface: `Transform`
Sets the x scale of this transform.
Specified by:
`setScaleX` in interface `Transform`
Returns:
this instance, for chaining.
• #### setScaleY

`public Transform setScaleY(double scaleY)`
Description copied from interface: `Transform`
Sets the y scale of this transform.
Specified by:
`setScaleY` in interface `Transform`
Returns:
this instance, for chaining.
• #### setRotation

`public Transform setRotation(double angle)`
Description copied from interface: `Transform`
Sets the rotation component of this transform.
Specified by:
`setRotation` in interface `Transform`
Returns:
this instance, for chaining.
• #### setTranslation

```public Transform setTranslation(double tx,
double ty)```
Description copied from interface: `Transform`
Sets the translation component of this transform.
Specified by:
`setTranslation` in interface `Transform`
Returns:
this instance, for chaining.
• #### uniformScale

`public Transform uniformScale(double scale)`
Description copied from interface: `Transform`
Scales this transform in a uniform manner by the specified amount.
Specified by:
`uniformScale` in interface `Transform`
Returns:
this instance, for chaining.
• #### scale

```public Transform scale(double scaleX,
double scaleY)```
Description copied from interface: `Transform`
Scales this transform by the specified amount in the x and y dimensions.
Specified by:
`scale` in interface `Transform`
Returns:
this instance, for chaining.
• #### scaleX

`public Transform scaleX(double scaleX)`
Description copied from interface: `Transform`
Scales this transform by the specified amount in the x dimension.
Specified by:
`scaleX` in interface `Transform`
Returns:
this instance, for chaining.
• #### scaleY

`public Transform scaleY(double scaleY)`
Description copied from interface: `Transform`
Scales this transform by the specified amount in the y dimension.
Specified by:
`scaleY` in interface `Transform`
Returns:
this instance, for chaining.
• #### rotate

`public Transform rotate(double angle)`
Description copied from interface: `Transform`
Rotates this transform.
Specified by:
`rotate` in interface `Transform`
Returns:
this instance, for chaining.
• #### translate

```public Transform translate(double tx,
double ty)```
Description copied from interface: `Transform`
Translates this transform.
Specified by:
`translate` in interface `Transform`
Returns:
this instance, for chaining.
• #### translateX

`public Transform translateX(double tx)`
Description copied from interface: `Transform`
Translates this transform in the x dimension.
Specified by:
`translateX` in interface `Transform`
Returns:
this instance, for chaining.
• #### translateY

`public Transform translateY(double ty)`
Description copied from interface: `Transform`
Translates this transform in the y dimension.
Specified by:
`translateY` in interface `Transform`
Returns:
this instance, for chaining.
• #### shear

```public Transform shear(double sx,
double sy)```
Description copied from interface: `Transform`
Shears this transform.
Specified by:
`shear` in interface `Transform`
Returns:
this instance, for chaining.
• #### shearX

`public Transform shearX(double sx)`
Description copied from interface: `Transform`
Shears this transform in the x dimension.
Specified by:
`shearX` in interface `Transform`
Returns:
this instance, for chaining.
• #### shearY

`public Transform shearY(double sy)`
Description copied from interface: `Transform`
Shears this transform in the y dimension.
Specified by:
`shearY` in interface `Transform`
Returns:
this instance, for chaining.
• #### setTx

`public Transform setTx(double tx)`
Description copied from interface: `Transform`
Sets the x-component of this transform's translation.
Specified by:
`setTx` in interface `Transform`
Returns:
this instance, for chaining.
• #### setTy

`public Transform setTy(double ty)`
Description copied from interface: `Transform`
Sets the y-component of this transform's translation.
Specified by:
`setTy` in interface `Transform`
Returns:
this instance, for chaining.
• #### setTransform

```public Transform setTransform(double m00,
double m01,
double m10,
double m11,
double tx,
double ty)```
Description copied from interface: `Transform`
Sets the affine transform matrix.
Specified by:
`setTransform` in interface `Transform`
Returns:
this instance, for chaining.
• #### clone

```@Deprecated
public Transform clone()```
Deprecated.
Specified by:
`clone` in interface `Transform`
Overrides:
`clone` in class `Object`
• #### copy

`public abstract Transform copy()`
Description copied from interface: `Transform`
Returns a copy of this transform.
Specified by:
`copy` in interface `Transform`