LayOut C API
|
Represents a 2D (2x3) affine transformation matrix. The matrix is stored in column-major format: More...
#include <geometry.h>
Data Fields | |
double | m11 |
the m11 component More... | |
double | m12 |
the m12 component More... | |
double | m21 |
the m21 component More... | |
double | m22 |
the m22 component More... | |
double | tx |
the tx component More... | |
double | ty |
the ty component More... | |
Related Functions | |
(Note that these are not member functions.) | |
SU_RESULT | SUTransformation2DTranslation (struct SUTransformation2D *transform, const struct SUVector2D *vector) |
Creates a translation transformation using the given vector. More... | |
SU_RESULT | SUTransformation2DScale (struct SUTransformation2D *transform, double scale) |
Creates a scale transformation using the given scale value. More... | |
SU_RESULT | SUTransformation2DNonUniformScale (struct SUTransformation2D *transform, double x_scale, double y_scale) |
Creates a scale transformation using the given scale values. More... | |
SU_RESULT | SUTransformation2DScaleAboutPoint (struct SUTransformation2D *transform, const struct SUPoint2D *point, double scale) |
Creates a scale transformation using the given scale value and origin. More... | |
SU_RESULT | SUTransformation2DNonUniformScaleAboutPoint (struct SUTransformation2D *transform, const struct SUPoint2D *point, double x_scale, double y_scale) |
Creates a scale transformation using the given scale values and origin. More... | |
SU_RESULT | SUTransformation2DRotation (struct SUTransformation2D *transform, const struct SUPoint2D *point, double angle) |
Creates a transformation given a point and angle. More... | |
SU_RESULT | SUTransformation2DIsIdentity (const struct SUTransformation2D *transform, bool *is_identity) |
Gets whether the transformation is an identity transformation. More... | |
SU_RESULT | SUTransformation2DGetInverse (const struct SUTransformation2D *transform, struct SUTransformation2D *inverse) |
Gets the inverse transformation of the given transformation object. More... | |
SU_RESULT | SUTransformation2DMultiply (const struct SUTransformation2D *transform1, const struct SUTransformation2D *transform2, struct SUTransformation2D *out_transform) |
Multiplies a transformation by another transformation. More... | |
Represents a 2D (2x3) affine transformation matrix. The matrix is stored in column-major format:
m11 m21 tx m12 m22 ty
|
related |
Gets the inverse transformation of the given transformation object.
[in] | transform | The transformation object. |
[out] | inverse | The inverse transformation object. |
|
related |
Gets whether the transformation is an identity transformation.
[in] | transform | The transformation object. |
[out] | is_identity | Whether the transformation is identity. |
|
related |
Multiplies a transformation by another transformation.
[in] | transform1 | The transformation object to be multiplied. |
[in] | transform2 | The transformation object to multiply by. |
[out] | out_transform | The result of the matrix multiplication [transform1 * transform2]. |
|
related |
Creates a scale transformation using the given scale values.
[out] | transform | The transformation to be set. |
[in] | x_scale | The x-axis scale value for the transformation. |
[in] | y_scale | The y-axis scale value for the transformation. |
|
related |
Creates a scale transformation using the given scale values and origin.
[out] | transform | The transformation to be set. |
[in] | point | The point specifying the translation component of the transformation. |
[in] | x_scale | The x-axis scale value for the transformation. |
[in] | y_scale | The y-axis scale value for the transformation. |
|
related |
Creates a transformation given a point and angle.
[out] | transform | The calculated transformation. |
[in] | point | The point specifying the translation component of the transformation. |
[in] | angle | The rotation in radians for the transformation. |
|
related |
Creates a scale transformation using the given scale value.
[out] | transform | The transformation to be set. |
[in] | scale | The scale value for the transformation. |
|
related |
Creates a scale transformation using the given scale value and origin.
[out] | transform | The transformation to be set. |
[in] | point | The point specifying the translation component of the transformation. |
[in] | scale | The scale value for the transformation. |
|
related |
Creates a translation transformation using the given vector.
[out] | transform | The transformation to be set. |
[in] | vector | The 2D vector specifying the translation for the transformation. |
double SUTransformation2D::m11 |
the m11 component
double SUTransformation2D::m12 |
the m12 component
double SUTransformation2D::m21 |
the m21 component
double SUTransformation2D::m22 |
the m22 component
double SUTransformation2D::tx |
the tx component
double SUTransformation2D::ty |
the ty component