#include <splinemapper.h>
Represents a generator point in a spline.
Public Member Functions | |
Bool | operator== (const SplineMapperKnot &k) const |
Bool | operator!= (const SplineMapperKnot &k) const |
HashInt | GetHashCode () const |
Static Public Member Functions | |
static Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Public Attributes | |
Vector2d | position |
SPLINEMAPPER_KNOT_INTERPOLATION_TYPE | interpolation |
Vector2d | tangentLeft |
Vector2d | tangentRight |
SPLINEMAPPER_KNOT_FLAGS | flags |
Bool operator== | ( | const SplineMapperKnot & | k | ) | const |
Equality operator. Checks if two knots are equal.
[in] | k | A spline knot. |
Bool operator!= | ( | const SplineMapperKnot & | k | ) | const |
Inequality operator. Checks if two knots are not equal.
[in] | k | A spline knot. |
HashInt GetHashCode | ( | ) | const |
|
static |
Describe all elements of this class for I/O operations.
[in] | stream | The stream that is used to register the class members. |
Vector2d position |
Position. To make sure position of new/modified knots are inside spline range (.
SPLINEMAPPER_KNOT_INTERPOLATION_TYPE interpolation |
Interpolation.
Vector2d tangentLeft |
Left Tangent. Used only with Bezier interpolation type. Ignored by first point.
Vector2d tangentRight |
Right Tangent. Used only with Bezier interpolation type. Ignored by last point.
SPLINEMAPPER_KNOT_FLAGS flags |