Compare and returns closest point p1 or p2 from origin
Namespace:
Hyleos.Common.GeometryAssembly: Hyleos.Common (in Hyleos.Common.dll) Version: 1.0.3.2 (1.0.3.2)
Syntax
| C# |
|---|
public static PointF ClosestPoint( PointF origin, PointF p1, PointF p2 ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function ClosestPoint ( _ origin As PointF, _ p1 As PointF, _ p2 As PointF _ ) As PointF |
| Visual C++ |
|---|
public: static PointF ClosestPoint( PointF origin, PointF p1, PointF p2 ) |
Parameters
- origin
- Type: System.Drawing..::.PointF
Orgin PointF
- p1
- Type: System.Drawing..::.PointF
PointF 1
- p2
- Type: System.Drawing..::.PointF
PointF 2
Return Value
Closest point p1 or p2 from origin
Remarks
This method compare distance beetween Origin - Point1 and Origin - Point2