Point3F

A 3D point geometric object defined by three 3D coordinates.
Single precision.

Public Fields

X
System.Double
X coordinate.
Y
System.Double
Y coordinate.
Z
System.Double
Z coordinate.

Properties

IsUndefined
readonly

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

IsZero
readonly

System.Boolean
True if the point is 0,0,0

Undefined
static,readonly

Point3F
An instance of an undefined point.

XmlValue

System.String
This property is used for XmlSerialisation.

XProperty

System.Double
 

YProperty

System.Double
 

ZProperty

System.Double
 

Methods

Distance
static
Double Distance (Point3F p1, Point3F p2)
Find the distance between 2 points
Parameters:
p1: The first 3D point
p2: Th2 second 3D point
Returns: The scalar distance between to points
Equals
Boolean Equals (Object o)
Determines if a point is equal to an object.
Parameters:
o: An object.
Returns: True if the object is a Point3F whose coordinates are the same as this point.
GetHashCode
Int32 GetHashCode ()
Used internally.
Returns:
IsInside
Boolean IsInside (Rect2F rect)
Match
static
Boolean Match (Point3F a, Point3F b)
Match
static
Boolean Match (Point3F a, Point3F b, Double tol)
Parse
static
Point3F Parse (String s)
Parse a string containing a text representation of a 3D point.
Where the string is of the form X,Y,Z or {X,Y,Z} or (X,Y,Z), where X, Y and Z are doubleing point numbers.
Will throw an exception if the string can not be parsed.
Parameters:
s: The string to parse.
Returns: A 3D point.
RegionInside
Boolean RegionInside (Rect2F rect)
ToString
String ToString ()
String representation of the point.
Returns: X,Y,Z