Point2D Class

Defines a 2D point.
Public Class Point2D 
Implements ICloneable
This language is not supported or no code example is available.
public class Point2D : ICloneable
This language is not supported or no code example is available.
Name Description
Protected constructor Point2D(Point2D)
Public constructor Point2D() Empty constructor.
Public constructor Point2D(double, double) Standard constructor.
Public constructor Point2D(double[]) Double array constructor.
Top
Name Description
Public property AsVector
Public property Static MaxValue Returns a 2D point with coordinates at double.MaxValue.
Public property MaximumCoordinate Gets the absolute value of the maximum coordinate.
Public property Static MinValue Returns a 2D point with coordinates at double.MinValue.
Public property Static Origin Returns a 2D point at origin.
Top
Methods
 
Name Description
Public method Static AreEqual(Point2D, Point2D, double) Compares two 2D points in the given domain.
Public method Clone() Creates a deep copy of this 2D point.
Public method ConvertToSurrogate()
Public method Static Distance(Point2D, Point2D) Computes the distance between two 2D points.
Public method Static DistanceSquared(Point2D, Point2D) Computes the squared distance between two 2D points.
Public method DistanceTo(Point2D) Computes the distance to 2D point b.
Public method DistanceTo(Segment2D) Computes the point-line distance.
Public method Equals(Point2D)
Public method Equals(object) Determines whether the specified object is equal to the current object.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode() Serves as the default hash function.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetXElement()
Public method IsValid() Returns true if the point's coordinates are reasonable values.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static MidPoint(Point2D, Point2D) Computes the midpoint between two 2D points.
Public method ProjectTo(Segment2D) Project this point onto a 2D segment.
Public method Static ReadXml(XmlNode)
Public method Static ReadXml(string)
Public method ToArray() Returns an array of point's coordinates.
Public method ToString() Converts this 2D point to a human readable string.
Public method ToStringXml() Converts this 2D point to a human readable string.
Public method TransformBy(Transformation) Transforms the 2D point by the specified transformation.
Public method WriteXml(XmlTextWriter)
Top
Name Description
Operator Static Addition Addition between two 2D points.
Operator Static Addition Addition between a 2D point and a 2D vector.
Operator Static Addition Addition between a 2D vector and a 2D point.
Operator Static Division Division between a 2D point and a scalar value.
Operator Static Equality
Operator Static Inequality
Operator Static Multiply Product between a 2D point and a scalar value.
Operator Static Multiply Product between a scalar value and a 2D point.
Operator Static Subtraction Subtraction between two 2D points.
Operator Static Subtraction Subtraction between a 2D point and a 2D vector.
Operator Static Subtraction Subtraction between a 2D vector and a 2D point.
Top
Name Description
Public extension method DrawGL(this Point2D) Calls glVertex2d(X, Y) (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this Point3D) Calls glVertex3d(X, Y, Z). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointNormalUv) Calls glNormal3d(Nx, Ny, Nz) and glVertex3d(X, Y, Z) (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointNormalUv, Color[]) For internal use only. (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointRGB) Calls gl.Color3ub(R, G, B) and glVertex3d(X, Y, Z). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this PointWithDisplacement, double) Calls gl.Vertex3d(X+UX, Y+UY, Z+UZ). (Defined by ExtensionMethodsGL).
Public extension method DrawGL(this Vector3D) Calls gl.Normal3d(X, Y, Z) (Defined by ExtensionMethodsGL).
Top
Fields
 
Name Description
Public field X X coordinate value.
Public field Y Y coordinate value.
Top

.NET Framework

Supported in: 4.8

In this article

Definition