Click or drag to resize
Point2D Methods

The Point2D type exposes the following members.

Methods
  NameDescription
Public methodStatic memberArea2
Returns twice the signed area of the triangle a-b-c.
Public methodStatic memberCcw
Returns true if a->b->c is a counterclockwise turn.
Public methodCompareTo
Compares two points by y-coordinate, breaking ties by x-coordinate. Formally, the invoking point (x0, y0) is less than the argument point (x1, y1) if and only if either y0 < y1 or if y0 = y1 and x0 < x1.
Public methodDistanceSquaredTo
Returns the square of the Euclidean distance between this point and that point.
Public methodDistanceTo
Returns the Euclidean distance between this point and that point.
Public methodDraw
Plot this point using standard draw.
(Overrides BasicVisualDraw.)
Public methodDrawTo
Plot a line from this point to that point using standard draw.
Public methodEquals
Compares this point to the specified point.
(Overrides ObjectEquals(Object).)
Public methodGetAtan2Order
Compares two points by atan2() angle (between -pi and pi) with respect to this point.
Public methodGetDistanceToOrder
Compares two points by distance to this point.
Public methodGetHashCode
Returns an integer hash code for this point.
(Overrides ObjectGetHashCode.)
Public methodGetPolarOrder
Compares two points by polar angle (between 0 and 2pi) with respect to this point.
Public methodStatic memberMainTest
Demo test the point data type.
Public methodToString
Return a string representation of this point.
(Overrides ObjectToString.)
Top
See Also