LayOut C API
|
Represents a point in 2-dimensional space. More...
#include <geometry.h>
Data Fields | |
double | x |
X coordinate. More... | |
double | y |
Y coordinate. More... | |
Related Functions | |
(Note that these are not member functions.) | |
SU_RESULT | SUPoint2DToSUPoint2D (const struct SUPoint2D *point1, const struct SUPoint2D *point2, struct SUVector2D *vector) |
Creates a vector between two point objects. More... | |
SU_RESULT | SUPoint2DGetEqual (const struct SUPoint2D *point1, const struct SUPoint2D *point2, bool *equal) |
Determines if two points are equal. More... | |
SU_RESULT | SUPoint2DOffset (const struct SUPoint2D *point1, const struct SUVector2D *vector, struct SUPoint2D *point2) |
Creates a new point that is offset from another point. More... | |
SU_RESULT | SUPoint2DDistanceToSUPoint2D (const struct SUPoint2D *point1, const struct SUPoint2D *point2, double *distance) |
Gets the distance between two point objects. More... | |
SU_RESULT | SUPoint2DTransform (const struct SUTransformation2D *transform, struct SUPoint2D *point) |
Transforms a point by applying a 2D transformation. More... | |
Represents a point in 2-dimensional space.
|
related |
Gets the distance between two point objects.
[in] | point1 | The first point object. |
[in] | point2 | The second point object. |
[out] | distance | The distance between the two points. |
|
related |
Determines if two points are equal.
[in] | point1 | The first point object. |
[in] | point2 | The second point object. |
[out] | equal | Whether the two points are the same. |
|
related |
Creates a new point that is offset from another point.
[in] | point1 | The point object. |
[in] | vector | The offset vector object. |
[out] | point2 | The new point. |
|
related |
Creates a vector between two point objects.
[in] | point1 | The first point object. |
[in] | point2 | The second point object. |
[out] | vector | The vector from point1 to point2. |
|
related |
Transforms a point by applying a 2D transformation.
[in] | transform | The transformation to be applied. |
[in,out] | point | The point to be transformed. |
double SUPoint2D::x |
X coordinate.
double SUPoint2D::y |
Y coordinate.