Table of Contents

Struct GeoPoint2

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Whether a point touches another shape.

public readonly struct GeoPoint2 : IEquatable<GeoPoint2>
Implements
Inherited Members
Extension Methods

Constructors

GeoPoint2()

Initializes a new point at the origin (0, 0).

GeoPoint2(GeoPoint2)

Initializes a new point from another point.

GeoPoint2(double, double)

Initializes a new point.

Properties

IsValid

Gets whether this is a shape a constructor could have made: every coordinate is a finite number.

Origin

Gets the point at the origin (0, 0).

X

Gets the X coordinate of the point.

Y

Gets the Y coordinate of the point.

Methods

Add(GeoVector2)

Adds a GeoVector2 to the point for translation.

Clone()

Creates a copy of this point.

DistanceTo(GeoArc2)

Gets the distance from this point to a arc, using the default tolerance.

DistanceTo(GeoArc2, Tolerance)

Gets the distance from this point to a arc, within a tolerance.

DistanceTo(GeoCircle2)

Calculates the Euclidean distance to a circle boundary.

DistanceTo(GeoEdge2)

Gets the distance from this point to an edge.

DistanceTo(GeoFace2)

Gets the distance from this point to a face, using the default tolerance.

DistanceTo(GeoFace2, Tolerance)

Gets the distance from this point to a face, within a tolerance.

DistanceTo(GeoLine2)

Calculates the Euclidean distance to a line segment.

DistanceTo(GeoPoint2)

Calculates the Euclidean distance to another point.

DistanceTo(GeoPolygon2)

Calculates the Euclidean distance to a polygon boundary.

DistanceTo(GeoPolygonArc2)

Gets the distance from this point to a curved loop, using the default tolerance.

DistanceTo(GeoPolygonArc2, Tolerance)

Gets the distance from this point to a curved loop, within a tolerance.

DistanceTo(GeoPolyline2)

Calculates the Euclidean distance to a polyline.

DistanceTo(GeoPolylineArc2)

Gets the distance from this point to a curved chain, using the default tolerance.

DistanceTo(GeoPolylineArc2, Tolerance)

Gets the distance from this point to a curved chain, within a tolerance.

DistanceTo(GeoRectangle2)

Calculates the Euclidean distance to a rectangle.

DistanceTo(GeoTriangle2)

Gets the distance from this point to a triangle.

Equals(GeoPoint2)

Indicates whether the current point is equal to another point.

Equals(object)

Indicates whether this instance and a specified object are equal.

GetClosestEdge(GeoPolygon2)

Gets the edge of a polygon nearest this point, using the default tolerance.

GetClosestEdge(GeoPolygonArc2)

Gets the edge of a curved loop nearest this point, using the default tolerance.

GetClosestEdge(GeoPolygonArc2, Tolerance)

Gets the edge of a curved loop nearest this point, within a tolerance.

GetClosestEdge(GeoPolyline2)

Gets the edge of a polyline nearest this point, using the default tolerance.

GetClosestEdge(GeoPolylineArc2)

Gets the edge of a curved chain nearest this point, using the default tolerance.

GetClosestEdge(GeoPolylineArc2, Tolerance)

Gets the edge of a curved chain nearest this point, within a tolerance.

GetClosestEdge(GeoRectangle2)

Gets the edge of a rectangle nearest this point, using the default tolerance.

GetClosestEdge(GeoTriangle2)

Gets the edge of a triangle closest to this point.

GetClosestPointOnBoundary(GeoArc2)

Gets the point of a arc nearest this point, using the default tolerance.

GetClosestPointOnBoundary(GeoArc2, Tolerance)

Gets the point of a arc nearest this point, within a tolerance.

GetClosestPointOnBoundary(GeoCircle2)

Gets the closest point on the circumference of a circle to this point.

GetClosestPointOnBoundary(GeoEdge2)

Gets the point of an edge nearest this point.

GetClosestPointOnBoundary(GeoFace2)

Gets the point of a face nearest this point, using the default tolerance.

GetClosestPointOnBoundary(GeoFace2, Tolerance)

Gets the point of a face nearest this point, within a tolerance.

GetClosestPointOnBoundary(GeoLine2)

Gets the closest point on a line segment to this point, clamped to its endpoints.

GetClosestPointOnBoundary(GeoPolygon2)

Gets the closest point on the boundary of a polygon to this point.

GetClosestPointOnBoundary(GeoPolygonArc2)

Gets the point of a curved loop nearest this point, using the default tolerance.

GetClosestPointOnBoundary(GeoPolygonArc2, Tolerance)

Gets the point of a curved loop nearest this point, within a tolerance.

GetClosestPointOnBoundary(GeoPolyline2)

Gets the closest point on the path of a polyline to this point.

GetClosestPointOnBoundary(GeoPolylineArc2)

Gets the point of a curved chain nearest this point, using the default tolerance.

GetClosestPointOnBoundary(GeoPolylineArc2, Tolerance)

Gets the point of a curved chain nearest this point, within a tolerance.

GetClosestPointOnBoundary(GeoRectangle2)

Gets the closest point on the boundary of a rectangle to this point.

GetClosestPointOnBoundary(GeoTriangle2)

Gets the point on the edges of a triangle closest to this point.

GetDistanceSquaredTo(GeoPoint2)

Calculates the squared Euclidean distance to another point.

GetHashCode()

Returns the hash code for this instance.

GetMiddlePoint(GeoPoint2)

Gets the midpoint between this point and another point.

GetShortestLineTo(GeoArc2)

Gets the shortest segment leaving this point and landing on an arc, using the default tolerance.

GetShortestLineTo(GeoArc2, Tolerance)

Gets the shortest segment leaving this point and landing on an arc, within a tolerance.

GetShortestLineTo(GeoFace2)

Gets the shortest segment leaving this point and landing on the boundary of a face, using the default tolerance.

GetShortestLineTo(GeoFace2, Tolerance)

Gets the shortest segment leaving this point and landing on the boundary of a face, within a tolerance.

GetSideOf(GeoLine2)

Determines which side of a segment this point lies on, using the default tolerance.

GetSideOf(GeoLine2, Tolerance)

Determines which side of a segment this point lies on, within a tolerance.

GetVectorTo(GeoPoint2)

Gets the GeoVector2 pointing from this point to another point.

IsEqualTo(GeoPoint2)

Compares whether this point is coincident with another point using default tolerance.

IsEqualTo(GeoPoint2, Tolerance)

Compares whether this point is coincident with another point within the allowed tolerance.

IsPointOn(GeoCircle2)

Checks whether this point lies on the circle circumference using default tolerance.

IsPointOn(GeoCircle2, Tolerance)

Checks whether this point lies on the circle circumference within tolerance.

IsPointOn(GeoLine2)

Checks whether this point lies on the line segment using default tolerance.

IsPointOn(GeoLine2, Tolerance)

Checks whether this point lies on the line segment within tolerance.

IsPointOn(GeoPolyline2)

Checks whether this point lies on the polyline using default tolerance.

IsPointOn(GeoPolyline2, Tolerance)

Checks whether this point lies on the polyline within tolerance.

LocateIn(GeoCircle2)

Classifies the location of this point relative to a circle (Inside, OutSide, or OnSide) using default tolerance.

LocateIn(GeoCircle2, Tolerance)

Classifies the location of this point relative to a circle (Inside, OutSide, or OnSide) within tolerance.

LocateIn(GeoLine2)

Classifies the location of this point relative to a line segment (OnSide or OutSide) using default tolerance.

LocateIn(GeoLine2, Tolerance)

Classifies the location of this point relative to a line segment (OnSide or OutSide) within tolerance.

LocateIn(GeoPolygon2)

Classifies the location of this point relative to a polygon (Inside, OutSide, or OnSide) using default tolerance.

LocateIn(GeoPolygon2, Tolerance)

Classifies the location of this point relative to a polygon (Inside, OutSide, or OnSide) within tolerance.

LocateIn(GeoPolyline2)

Classifies the location of this point relative to a polyline (Inside, OutSide, or OnSide) using default tolerance.

LocateIn(GeoPolyline2, Tolerance)

Classifies the location of this point relative to a polyline (Inside, OutSide, or OnSide) within tolerance.

LocateIn(GeoRectangle2)

Classifies the location of this point relative to a rectangle (Inside, OutSide, or OnSide) using default tolerance.

LocateIn(GeoRectangle2, Tolerance)

Classifies the location of this point relative to a rectangle (Inside, OutSide, or OnSide) within tolerance.

LocateIn(GeoTriangle2)

Classifies where this point is with respect to a triangle, using the default tolerance.

LocateIn(GeoTriangle2, Tolerance)

Classifies where this point is with respect to a triangle, within a tolerance.

RotateBy(double, GeoPoint2)

Rotates the point around a center with a specified rotation angle in radians (counter-clockwise).

ScaleBy(double, GeoPoint2)

Scales the distance from the center to this point by a factor.

SignedDistanceTo(GeoCircle2)

Gets the signed distance from this point to the boundary of a circle, negative inside it, using the default tolerance.

SignedDistanceTo(GeoCircle2, Tolerance)

Gets the signed distance from this point to the boundary of a circle, negative inside it, within a tolerance.

SignedDistanceTo(GeoFace2)

Gets the signed distance from this point to the boundary of a face, negative inside it, using the default tolerance.

SignedDistanceTo(GeoFace2, Tolerance)

Gets the signed distance from this point to the boundary of a face, negative inside it, within a tolerance.

SignedDistanceTo(GeoPolygon2)

Gets the signed distance from this point to the boundary of a polygon, negative inside it, using the default tolerance.

SignedDistanceTo(GeoPolygon2, Tolerance)

Gets the signed distance from this point to the boundary of a polygon, negative inside it, within a tolerance.

SignedDistanceTo(GeoPolygonArc2)

Gets the signed distance from this point to the boundary of a curved loop, negative inside it, using the default tolerance.

SignedDistanceTo(GeoPolygonArc2, Tolerance)

Gets the signed distance from this point to the boundary of a curved loop, negative inside it, within a tolerance.

SignedDistanceTo(GeoRectangle2)

Gets the signed distance from this point to the boundary of a rectangle, negative inside it, using the default tolerance.

SignedDistanceTo(GeoRectangle2, Tolerance)

Gets the signed distance from this point to the boundary of a rectangle, negative inside it, within a tolerance.

SignedDistanceTo(GeoTriangle2)

Gets the distance from this point to a triangle, negative when the point lies within it.

SignedDistanceTo(GeoTriangle2, Tolerance)

Gets the distance from this point to a triangle, negative when the point lies within it, within a tolerance.

Subtract(GeoVector2)

Subtracts a GeoVector2 from the point.

ToPoint3(GeoCoordinateSystem3)

Puts this point of the plane back into space, on the plane of a frame.

ToString()

Returns the string representation of the point.

TransformBy(GeoTransform2)

Applies a transformation to this point.

Operators

operator +(GeoPoint2, GeoVector2)

Translates a point by a vector.

operator ==(GeoPoint2, GeoPoint2)

Compares two GeoPoint2 instances for equality.

operator !=(GeoPoint2, GeoPoint2)

Compares two GeoPoint2 instances for inequality.

operator -(GeoPoint2, GeoPoint2)

Calculates the vector from one point to another.

operator -(GeoPoint2, GeoVector2)

Translates a point back by a vector.