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

A two-dimensional point in the Cartesian system. More...

Inheritance diagram for oevislib_net.Geometry.Point2D:

Public Member Functions

bool Equals (Point2D other)
override bool Equals (object obj)
override int GetHashCode ()
override object Clone ()

Static Public Member Functions

static implicit operator Point2Di (Point2D p)
static operator Point2D (Point2Di p)
static implicit operator Vector2D (Point2D p)
static operator Point2D (Vector2D v)
Point2D Normalizations
static void RemoveInvalidPoints (Array< Point2D > ioPoints)
 Removes points with NaN of INF coordinates.

Properties

float X = 0.0f [get, set]
float Y = 0.0f [get, set]

Point2D Basics

See also
Basics
static bool operator== (Point2D inPoint2D1, Point2D inPoint2D2)
static bool operator!= (Point2D inPoint2D1, Point2D inPoint2D2)
static Point2D operator+ (Point2D inPoint, Vector2D inVector)
 Sums the vector dimension to the point coordinates.
static Point2D operator- (Point2D inPoint, Vector2D inVector)
 Subtracts the vector dimension to the point coordinates.
static Point2D operator- (Point2D inPoint)
 
Parameters
inPoint

static Point2D operator* (Point2D inPoint, float inVector)
 Multiples the point coordinates by a scalar.
static Point2D operator/ (Point2D inPoint, float inVector)
 Divides the point coordinates by a scalar.
static Vector2D operator- (Point2D inPoint1, Point2D inPoint2)
 Subtracts both points coordinates.
static bool operator< (Point2D inPoint1, Point2D inPoint2)
 Compare both coordinates using the 'less than' logical operator.
static bool operator> (Point2D inPoint1, Point2D inPoint2)
 Compare both coordinates using the 'greater than' logical operator.
static bool operator<= (Point2D inPoint1, Point2D inPoint2)
 
Parameters
inPoint1
inPoint2

static bool operator>= (Point2D inPoint1, Point2D inPoint2)
 
Parameters
inPoint1
inPoint2

static Point2D Deserialize (ByteBuffer inBuffer)
 De-serialize a Point2D buffer.
 Point2D ()
 Creates a Point2D in (0,0).
 Point2D (float inX, float inY)
 Creates a new Point2D given the coordinates.
 Point2D (int inX, int inY)
 Creates a new Point2D given the coordinates.
 Point2D (float inX, int inY)
 Creates a new Point2D given a float and an integer.
 Point2D (int inX, float inY)
 Creates a new Point2D given an integer and a float.
ByteBuffer Serialize ()
 Serializes the object.

Point2D Spatial Transforms

See also
Spatial Transforms
static void TranslatePoints (Array< Point2D > ioPoints, Vector2D inDelta, bool inInverse)
 Translates all the points in the array.
static void RotatePoints (Array< Point2D > ioPoints, float inAngle, Optional< Point2D > inCenter=null, bool inInverse=false)
 Rotates clockwise all the points in the array.
static void AlignPoints (Array< Point2D > ioPoints, UCS2D inAlignment, bool inInverse)
 Aligns all the points in the array.
static void RescalePoints (Array< Point2D > ioPoints, float inScale=1.0f, Optional< Point2D > inReferencePoint=null, bool inInverse=false)
 Rescales all the points in the array with respect to a reference point.
static Array< Point2DTrimPoints (Array< Point2D > inPoints, Box inBox)
 Filters the points that are contained in the provided box.
static Array< Point2DTrimPoints (Array< Point2D > inPoints, Region inRegion)
 Filters the points that are contained in the provided region.
static void SplitPoints (Array< Point2D > inPoints, Line2D inLine, Array< Point2D > outPointsPositive, Array< Point2D > outPointsNegative)
 Divides the input points in two arrays, based on the position with respect to the provided line.
Point2D Translate (Vector2D inDelta, bool inInverse)
 Translates the point coordinates using the provided vector.
Point2D Translate (Point2D inTargetPoint, float inDistance, bool inInverse)
 Translates the point towards a target point.
Point2D Translate (float inDirection, float inDistance, bool inInverse)
 Translates the point along the provided direction.
Point2D Rotate (float inAngle, Point2D inCenter, bool inInverse)
 Rotates the point coordinates clockwise.
Point2D Align (UCS2D inAlignment, bool inInverse)
 Aligns the point to a new coordinate system.
Point2D Rescale (float inScale, Point2D inReferencePoint, bool inInverse)
 Rescales the point distance with respect to a reference point.

Detailed Description

A two-dimensional point in the Cartesian system.