Table of Contents

Method GetClosestPointOnSurface

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetClosestPointOnSurface(GeoEllipse3, GeoPoint3)

Gets the point of the disc of an ellipse in space nearest a point, the disc read as a filled surface.

public static GeoPoint3 GetClosestPointOnSurface(GeoEllipse3 ellipse, GeoPoint3 point)

Parameters

ellipse GeoEllipse3

The ellipse.

point GeoPoint3

The point, anywhere.

Returns

GeoPoint3

The foot of the point on the plane when it lies within the rim, as a point above the interior lands straight down on the surface; otherwise the nearest point of the rim.

GetClosestPointOnSurface(GeoEllipse3, GeoPoint3, Tolerance)

Gets the point of the disc of an ellipse in space nearest a point, the disc read as a filled surface, within a tolerance.

public static GeoPoint3 GetClosestPointOnSurface(GeoEllipse3 ellipse, GeoPoint3 point, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

point GeoPoint3

The point, anywhere.

tolerance Tolerance

The tolerance, taken as a circle's is. It changes nothing: whether the foot lies within the rim is read exactly, and the rim is only asked for a point whose foot lies beyond it, far from where a tolerance decides anything.

Returns

GeoPoint3

The foot of the point on the plane when it lies within the rim; otherwise the nearest point of the rim.