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)
public bool ClosestParameter(
	Point3d testPoint,
	out double longitudeRadians,
	out double latitudeRadians


Type: Rhino.GeometryPoint3d
Point to project onto the sphere.
Type: SystemDouble
The longitudinal angle (in radians; 0.0 to 2pi) where the sphere approaches testPoint best.
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.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also