SketchUp C API
|
Represents a 2D (2x3) affine transformation matrix. The matrix is stored in column-major format: More...
#include <SketchUpAPI/geometry.h>
Data Fields | |
double | m11 |
the m11 component | |
double | m12 |
the m12 component | |
double | m21 |
the m21 component | |
double | m22 |
the m22 component | |
double | tx |
the tx component | |
double | ty |
the ty component | |
Related Functions | |
(Note that these are not member functions.) | |
enum SUResult | SUTransformation2DTranslation (struct SUTransformation2D *transform, const struct SUVector2D *vector) |
Creates a translation transformation using the given vector. More... | |
enum SUResult | SUTransformation2DScale (struct SUTransformation2D *transform, double scale) |
Creates a scale transformation using the given scale value. More... | |
enum SUResult | SUTransformation2DNonUniformScale (struct SUTransformation2D *transform, double x_scale, double y_scale) |
Creates a scale transformation using the given scale values. More... | |
enum SUResult | SUTransformation2DScaleAboutPoint (struct SUTransformation2D *transform, const struct SUPoint2D *point, double scale) |
Creates a scale transformation using the given scale value and origin. More... | |
enum SUResult | 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... | |
enum SUResult | SUTransformation2DRotation (struct SUTransformation2D *transform, const struct SUPoint2D *point, double angle) |
Creates a transformation given a point and angle. More... | |
enum SUResult | SUTransformation2DIsIdentity (const struct SUTransformation2D *transform, bool *is_identity) |
Gets whether the transformation is an identity transformation. More... | |
enum SUResult | SUTransformation2DGetInverse (const struct SUTransformation2D *transform, struct SUTransformation2D *inverse) |
Gets the inverse transformation of the given transformation object. More... | |
enum SUResult | 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. |