Click or drag to resize

SphereClosestParameter Method

Finds the angle parameters on this sphere that are closest to a test point.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public bool ClosestParameter(
	Point3d testPoint,
	out double longitudeRadians,
	out double latitudeRadians
)

Parameters

testPoint
Type: Rhino.GeometryPoint3d
Point to project onto the sphere.
longitudeRadians
Type: SystemDouble
The longitudinal angle (in radians; 0.0 to 2pi) where the sphere approaches testPoint best.
latitudeRadians
Type: SystemDouble
The latitudinal angle (in radians; -0.5pi to +0.5pi) where the sphere approaches testPoint best.

Return Value

Type: Boolean
true on success, false on failure. This function will fail if the point it coincident with the sphere center.
See Also