oevislib_net  0.14.3.0
Loading...
Searching...
No Matches

Compressed representation of a contiguous series of points with the same y coordinate. More...

Inheritance diagram for oevislib_net.PointsSequence:

Public Member Functions

 PointsSequence ()
 Creates an empty PointsSequence in (0, 0).
 PointsSequence (int inX, int inY, int inLength)
 Creates a new PointsSequence object.
Point2Di Begin ()
 Returns the first point of the sequence.
Point2Di End ()
 Returns the last point (not included) of the sequence.
int GetEnd ()
 Returns the last x coordinate (not included) of the sequence.
bool Contains (Point2Di inPosition)
 Checks if the given point is contained inside the points sequence.
bool Equals (PointsSequence other)
override bool Equals (object obj)
override int GetHashCode ()
override object Clone ()

Static Public Member Functions

static bool operator== (PointsSequence inPointsSequence1, PointsSequence inPointsSequence2)
static bool operator!= (PointsSequence inPointsSequence1, PointsSequence inPointsSequence2)
static bool operator< (PointsSequence inPointsSequence1, PointsSequence inPointsSequence2)
static bool operator> (PointsSequence inPointsSequence1, PointsSequence inPointsSequence2)

Properties

int X [get, set]
int Y [get, set]
int L [get, set]

Detailed Description

Compressed representation of a contiguous series of points with the same y coordinate.

Constructor & Destructor Documentation

◆ PointsSequence() [1/2]

oevislib_net.PointsSequence.PointsSequence ( )
inline

Creates an empty PointsSequence in (0, 0).

◆ PointsSequence() [2/2]

oevislib_net.PointsSequence.PointsSequence ( int inX,
int inY,
int inLength )
inline

Creates a new PointsSequence object.

Parameters
inXX coordinate.
inYY coordinate.
inLengthLength on X axis. Range: [0, +inf).

Member Function Documentation

◆ Begin()

Point2Di oevislib_net.PointsSequence.Begin ( )
inline

Returns the first point of the sequence.

Returns
First point of the sequence.

◆ Contains()

bool oevislib_net.PointsSequence.Contains ( Point2Di inPosition)
inline

Checks if the given point is contained inside the points sequence.

Parameters
inPositionThe point to check for containment.
Returns
True if the point is within the region; false otherwise.

◆ End()

Point2Di oevislib_net.PointsSequence.End ( )
inline

Returns the last point (not included) of the sequence.

Returns
Last point of the sequence.

◆ GetEnd()

int oevislib_net.PointsSequence.GetEnd ( )
inline

Returns the last x coordinate (not included) of the sequence.

Returns
Last x coordinate of the sequence.