Point2F

A 2D point geometric object defined by two 2D coordinates.
Single precision.

Public Fields

X
System.Double
X coordinate.
Y
System.Double
Y coordinate.
Zero
static
Point2F

Properties

IsUndefined
readonly

System.Boolean
True if the point is undefined (i.e. if either coordinate is NaN).

Undefined
static,readonly

Point2F
An instance of an undefined point.

XmlValue

System.String
This property is used for XmlSerialisation.

XProperty

System.Double
 

YProperty

System.Double
 

Methods

Distance
static
Double Distance (Point2F p1, Point2F p2)
Find the distance between 2 points
Parameters:
p1: The first 2D point
p2: Th2 second 2D point
Returns: The scalar distance between to points
DistanceTo
Double DistanceTo (Point2F p)
Calculate the distance between two 2D points.
Parameters:
p: The second point to test.
Returns: Distance.
DistanceTo
Double DistanceTo (PointF p)
Calculate the distance between the point and a System.Drawing.PointF point.
Parameters:
p: The second point to test.
Returns: Distance.
IsInside
Boolean IsInside (Rect2F rect)
Match
static
Boolean Match (Point2F a, Point2F b, Double tolerance, Double& dist2)
Match
static
Boolean Match (Point2F a, Point2F b, Double tolerance)
Match
static
Boolean Match (Point2F a, Point2F b)
Parse
static
Point2F Parse (String s)
Parse a string containing a text representation of a 2D point.
Where the string is of the form X,Y or {X,Y} or (X,Y), where X and Y are doubleing point numbers.
Will throw an exception if the string can not be parsed.
Parameters:
s: The string to parse.
Returns: A 2D point.
RegionInside
Boolean RegionInside (Rect2F rect)
ToString
String ToString ()
String representation of the point.
Returns: (X,Y)