ShapePoint
-
class ShapePoint
The ShapePoint class is a point used in shape definitions. It is a 2d point.
Public Functions
-
inline bool Equals(ShapePoint const &in_that) const
This function is used to check an object for equivalence to this.
- Parameters:
in_that – The object to compare to this.
- Returns:
true if the objects are equivalent, false otherwise.
-
inline bool operator!=(ShapePoint const &in_that) const
This function is used to check an object for equivalence to this.
- Parameters:
in_that – The object to compare to this.
- Returns:
true if the objects are not equivalent, false otherwise.
-
inline bool operator==(ShapePoint const &in_that) const
This function is used to check an object for equivalence to this.
- Parameters:
in_that – The object to compare to this.
- Returns:
true if the objects are equivalent, false otherwise.
-
ShapePoint()
Default constructor.
-
ShapePoint(float in_x, float in_y)
Construct a new ShapePoint, with margins computed automatically This is equivalent to using a ShapePoint constructed with the following two ShapeCoordinates ShapeCoordinate(A, 0, FloatArray(1, A)) ShapeCoordiante(0, B, FloatArray(1, B))
- Parameters:
in_x – A normalized distance over the horizontal text bounds and margins
in_y – A normalized distance over the vertical text bounds and margins.
-
ShapePoint(ShapeCoordinate const &in_x, ShapeCoordinate const &in_y)
Construct a new ShapePoint from two ShapeCoordinate objects.
- Parameters:
in_x – A ShapeCoordinate which will be used in the x direction.
in_y – A ShapeCoordinate which will be used in the x direction.
-
inline bool Equals(ShapePoint const &in_that) const