Table of Contents

Method TryGetTangentPoint

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryGetTangentPoint(GeoPlane3, out GeoPoint3)

Tries to find the point where a plane only touches the surface of this ball, using the default tolerance.

public bool TryGetTangentPoint(GeoPlane3 plane, out GeoPoint3 point)

Parameters

plane GeoPlane3

The plane.

point GeoPoint3

The foot of the centre on the plane when the method returns true; default otherwise.

Returns

bool

TryGetTangentPoint(GeoPlane3, out GeoPoint3, Tolerance)

Tries to find the point where a plane only touches the surface of this ball, within a tolerance.

public bool TryGetTangentPoint(GeoPlane3 plane, out GeoPoint3 point, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

point GeoPoint3

The foot of the centre on the plane when the method returns true; default otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when the plane stands within the point tolerance of the surface, either side of it, and does not cut it deeper.

Remarks

The ball of radius 50 about (0, 0, 50) touches the floor at the origin, and so does the one about (0, 0, 50.0005), which stands 0.0005 clear of it; the one about (0, 0, 50.002) does not.

TryGetTangentPoint(GeoSphere3, out GeoPoint3)

Tries to find the point where the surfaces of this ball and another only touch, using the default tolerance.

public bool TryGetTangentPoint(GeoSphere3 other, out GeoPoint3 point)

Parameters

other GeoSphere3

The other ball.

point GeoPoint3

The point of contact when the method returns true; default otherwise.

Returns

bool

TryGetTangentPoint(GeoSphere3, out GeoPoint3, Tolerance)

Tries to find the point where the surfaces of this ball and another only touch, within a tolerance.

public bool TryGetTangentPoint(GeoSphere3 other, out GeoPoint3 point, Tolerance tolerance)

Parameters

other GeoSphere3

The other ball.

point GeoPoint3

The point of contact when the method returns true; default otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when the balls touch from outside, or one touches the other from inside, within the point tolerance; the point is halfway between the two surfaces on the line of their centres, so it is within the tolerance of both.

Remarks

The ball of radius 50 about the origin touches the ball of radius 30 about (80, 0, 0) at (50, 0, 0), and the ball of radius 20 about (30, 0, 0), from inside, at (50, 0, 0).