Table of Contents

Method TryGetIntersectionCircle

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryGetIntersectionCircle(GeoPlane3, out GeoCircle3)

Tries to find the circle a plane cuts from the surface of this ball, using the default tolerance.

public bool TryGetIntersectionCircle(GeoPlane3 plane, out GeoCircle3 circle)

Parameters

plane GeoPlane3

The plane.

circle GeoCircle3

The circle when the method returns true, in the plane, about the foot of the centre on it; default otherwise.

Returns

bool

TryGetIntersectionCircle(GeoPlane3, out GeoCircle3, Tolerance)

Tries to find the circle a plane cuts from the surface of this ball, within a tolerance.

public bool TryGetIntersectionCircle(GeoPlane3 plane, out GeoCircle3 circle, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

circle GeoCircle3

The circle when the method returns true, in the plane, about the foot of the centre on it; default otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when the plane cuts the surface deeper than the point tolerance; false where it only touches it, which TryGetTangentPoint(GeoPlane3, out GeoPoint3, Tolerance) reads, or misses it.

Remarks

The floor cuts the ball of radius 50 about (0, 0, 30) in the circle of radius 40 about the origin, its normal that of the floor, and the plane 80 above the floor in none; the ball of radius 50 about (0, 0, 50) only touches the floor.

TryGetIntersectionCircle(GeoSphere3, out GeoCircle3)

Tries to find the circle the surfaces of this ball and another share, using the default tolerance.

public bool TryGetIntersectionCircle(GeoSphere3 other, out GeoCircle3 circle)

Parameters

other GeoSphere3

The other ball.

circle GeoCircle3

The circle when the method returns true; default otherwise.

Returns

bool

TryGetIntersectionCircle(GeoSphere3, out GeoCircle3, Tolerance)

Tries to find the circle the surfaces of this ball and another share, within a tolerance.

public bool TryGetIntersectionCircle(GeoSphere3 other, out GeoCircle3 circle, Tolerance tolerance)

Parameters

other GeoSphere3

The other ball.

circle GeoCircle3

The circle when the method returns true: in the plane the two surfaces share, its normal along the line from the centre of this ball to the other; default otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when the surfaces cross in a circle; false where they touch at a point, which TryGetTangentPoint(GeoSphere3, out GeoPoint3, Tolerance) reads, where one lies inside the other or they are apart, and where their centres are within the point tolerance of each other.

Remarks

The ball of radius 50 about the origin and the ball of radius 30 about (50, 0, 0) cross in the circle of radius 28.62 about (41, 0, 0), square to X. The circle is the same whichever ball is asked, to the bit, but for its normal, which points from the ball asked to the other.