M_Rhino_Geometry_Sphere_ClosestParameter - mcneel/rhinocommon-api-docs GitHub Wiki
Finds the angle parameters on this sphere that are closest to a test point.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public bool ClosestParameter(
Point3d testPoint,
out double longitudeRadians,
out double latitudeRadians
)
VB
Public Function ClosestParameter (
testPoint As Point3d,
<OutAttribute> ByRef longitudeRadians As Double,
<OutAttribute> ByRef latitudeRadians As Double
) As Boolean
- testPoint
- Type: Rhino.Geometry.Point3d
Point to project onto the sphere. - longitudeRadians
- Type: System.Double
The longitudinal angle (in radians; 0.0 to 2pi) where the sphere approaches testPoint best. - latitudeRadians
- Type: System.Double
The latitudinal angle (in radians; -0.5pi to +0.5pi) where the sphere approaches testPoint best.
Type: Boolean
true on success, false on failure. This function will fail if the point it coincident with the sphere center.
Supported in: 6.0.16224.21491, 5D58w