| Rhino C++ API
    8.24
    | 
#include <opennurbs_sphere.h>
| Public Member Functions | |
| ON_Sphere () | |
| ON_Sphere (const ON_3dPoint ¢er, double radius) | |
| center, radius  More... | |
| ~ON_Sphere () | |
| ON_BoundingBox | BoundingBox () const | 
| ON_3dPoint | Center () const | 
| ON_3dPoint | ClosestPointTo (ON_3dPoint test_point) const | 
| returns point on sphere that is closest to given point  More... | |
| bool | ClosestPointTo (ON_3dPoint test_point, double *longitude_radians, double *latitude_radians) const | 
| returns parameters of point on sphere that is closest to given point  More... | |
| bool | Create (const ON_3dPoint ¢er, double radius) | 
| center radius  More... | |
| double | Diameter () const | 
| int | GetNurbForm (ON_NurbsSurface &) const | 
| parameterization of NURBS surface does not match sphere's transcendental paramaterization  More... | |
| bool | IsValid () const | 
| ON_Circle | LatitudeDegrees (double latitude_degrees) const | 
| ON_Circle | LatitudeRadians (double latitude_radians) const | 
| ON_Circle | LongitudeDegrees (double longitude_degrees) const | 
| ON_Circle | LongitudeRadians (double longitude_radians) const | 
| ON_3dVector | NormalAt (double longitude_radians, double latitude_radians) const | 
| longitude [0,2pi], latitude [-pi/2,pi/2] in radians  More... | |
| ON_3dPoint | NorthPole () const | 
| ON_3dPoint | PointAt (double longitude_radians, double latitude_radians) const | 
| longitude [0,2pi], latitude [-pi/2,pi/2] in radians  More... | |
| double | Radius () const | 
| ON_RevSurface * | RevSurfaceForm (bool bArcLengthParameterization, ON_RevSurface *srf=nullptr) const | 
| ON_RevSurface * | RevSurfaceForm (ON_RevSurface *srf=nullptr) const | 
| bool | Rotate (double angle_radians, const ON_3dVector &axis_of_rotation) | 
| bool | Rotate (double angle_radians, const ON_3dVector &axis_of_rotation, const ON_3dPoint ¢er_of_rotation) | 
| bool | Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis_of_rotation) | 
| For intersections see ON_Intersect();.  More... | |
| bool | Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis_of_rotation, const ON_3dPoint ¢er_of_rotation) | 
| rotate sphere about a point and axis  More... | |
| ON_3dPoint | SouthPole () const | 
| bool | Transform (const ON_Xform &) | 
| bool | Translate (const ON_3dVector &) | 
| Public Attributes | |
| ON_Plane | plane | 
| equatorial plane  More... | |
| double | radius | 
| More... | |
| ON_Sphere::ON_Sphere | ( | ) | 
| ON_Sphere::ON_Sphere | ( | const ON_3dPoint & | center, | 
| double | radius | ||
| ) | 
center, radius
| ON_Sphere::~ON_Sphere | ( | ) | 
| ON_BoundingBox ON_Sphere::BoundingBox | ( | ) | const | 
| ON_3dPoint ON_Sphere::Center | ( | ) | const | 
| ON_3dPoint ON_Sphere::ClosestPointTo | ( | ON_3dPoint | test_point | ) | const | 
returns point on sphere that is closest to given point
| bool ON_Sphere::ClosestPointTo | ( | ON_3dPoint | test_point, | 
| double * | longitude_radians, | ||
| double * | latitude_radians | ||
| ) | const | 
returns parameters of point on sphere that is closest to given point
| longitude_radians | longitude [0,2pi) | 
| latitude_radians | latitude [-pi/2,pi/2] | 
| bool ON_Sphere::Create | ( | const ON_3dPoint & | center, | 
| double | radius | ||
| ) | 
center radius
| double ON_Sphere::Diameter | ( | ) | const | 
| int ON_Sphere::GetNurbForm | ( | ON_NurbsSurface & | ) | const | 
parameterization of NURBS surface does not match sphere's transcendental paramaterization
returns 0=failure, 2=success
| bool ON_Sphere::IsValid | ( | ) | const | 
| ON_Circle ON_Sphere::LatitudeDegrees | ( | double | latitude_degrees | ) | const | 
| ON_Circle ON_Sphere::LatitudeRadians | ( | double | latitude_radians | ) | const | 
| ON_Circle ON_Sphere::LongitudeDegrees | ( | double | longitude_degrees | ) | const | 
| ON_Circle ON_Sphere::LongitudeRadians | ( | double | longitude_radians | ) | const | 
| ON_3dVector ON_Sphere::NormalAt | ( | double | longitude_radians, | 
| double | latitude_radians | ||
| ) | const | 
longitude [0,2pi], latitude [-pi/2,pi/2] in radians
| ON_3dPoint ON_Sphere::NorthPole | ( | ) | const | 
| ON_3dPoint ON_Sphere::PointAt | ( | double | longitude_radians, | 
| double | latitude_radians | ||
| ) | const | 
longitude [0,2pi], latitude [-pi/2,pi/2] in radians
| double ON_Sphere::Radius | ( | ) | const | 
| ON_RevSurface* ON_Sphere::RevSurfaceForm | ( | bool | bArcLengthParameterization, | 
| ON_RevSurface * | srf = nullptr | ||
| ) | const | 
Description: Creates a surface of revolution definition of the sphere. Parameters: bArcLengthParameterization - [in] true: The domain will be set to (0,radius*2*pi)x(-radius*pi/2,radius*pi/2) false: The domain will be set to (0,2*pi)x(-pi/2,pi/2) srf - [in] if not nullptr, then this srf is used. Result: A surface of revolution or nullptr if the sphere is not valid.
| ON_RevSurface* ON_Sphere::RevSurfaceForm | ( | ON_RevSurface * | srf = nullptr | ) | const | 
| bool ON_Sphere::Rotate | ( | double | angle_radians, | 
| const ON_3dVector & | axis_of_rotation | ||
| ) | 
| angle_radians | angle in radians | 
| axis_of_rotation | axis of rotation | 
| bool ON_Sphere::Rotate | ( | double | angle_radians, | 
| const ON_3dVector & | axis_of_rotation, | ||
| const ON_3dPoint & | center_of_rotation | ||
| ) | 
| angle_radians | angle in radians | 
| axis_of_rotation | axis of rotation | 
| center_of_rotation | center of rotation | 
| bool ON_Sphere::Rotate | ( | double | sin_angle, | 
| double | cos_angle, | ||
| const ON_3dVector & | axis_of_rotation | ||
| ) | 
For intersections see ON_Intersect();.
rotate sphere about its origin
| sin_angle | sin(angle) | 
| cos_angle | cos(angle) | 
| axis_of_rotation | axis of rotation | 
| bool ON_Sphere::Rotate | ( | double | sin_angle, | 
| double | cos_angle, | ||
| const ON_3dVector & | axis_of_rotation, | ||
| const ON_3dPoint & | center_of_rotation | ||
| ) | 
rotate sphere about a point and axis
| sin_angle | sin(angle) | 
| cos_angle | cos(angle) | 
| axis_of_rotation | axis of rotation | 
| center_of_rotation | center of rotation | 
| ON_3dPoint ON_Sphere::SouthPole | ( | ) | const | 
| bool ON_Sphere::Transform | ( | const ON_Xform & | ) | 
| bool ON_Sphere::Translate | ( | const ON_3dVector & | ) | 
| ON_Plane ON_Sphere::plane | 
equatorial plane
| double ON_Sphere::radius | 
0
 1.8.17
 1.8.17