# Sphere struct

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 136)]
[Serializable]
public struct Sphere : IEpsilonComparable<Sphere>
```

Represents the plane and radius values of a sphere.

## Constructors

- [Sphere](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/ctor.md): (2 overloads) Initializes a new sphere given the plane of the equator circle and radius.

## Properties

- [BoundingBox](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/boundingbox.md): Gets the world aligned bounding box for this Sphere. If the Sphere is Invalid, an empty box is returned.
- [Center](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/center.md): Gets or sets the center point of the sphere.
- [Diameter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/diameter.md): Gets or sets the diameter for this sphere.
- [EquatorialPlane](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/equatorialplane.md): Gets or sets the Equatorial plane for this sphere.
- [EquitorialPlane](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/equitorialplane.md): (obsolete) Gets or sets the Equatorial plane for this sphere.
- [IsValid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/isvalid.md): Gets a value that indicates whether the sphere is valid.
- [NorthPole](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/northpole.md): Gets the point at the North Pole of the sphere. This is the parameterization singularity that can be obtained, at V value +Math.Pi/2.
- [Radius](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/radius.md): Gets or sets the Radius for this sphere.
- [SouthPole](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/southpole.md): Gets the point at the South Pole of the sphere. This is the parameterization singularity that can be obtained, at V value -Math.Pi/2.
- [Unset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/unset.md): (static) Gets a sphere with invalid members.

## Methods

- [ClosestParameter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/closestparameter.md): Finds the angle parameters on this sphere that are closest to a test point.
- [ClosestPoint](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/closestpoint.md): Returns point on sphere that is closest to given point.
- [EpsilonEquals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/epsilonequals.md): Check that all values in other are within epsilon of the values in this
- [FitSphereToPoints](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/fitspheretopoints.md): (static) Attempts to fit a sphere to a collection of points.
- [LatitudeDegrees](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/latitudedegrees.md): Computes the parallel at a specific latitude angle. The angle is specified in degrees.
- [LatitudeRadians](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/latituderadians.md): Computes the parallel at a specific latitude angle. The angle is specified in radians.
- [LongitudeDegrees](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/longitudedegrees.md): Computes the meridian at a specific longitude angle. The angle is specified in degrees.
- [LongitudeRadians](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/longituderadians.md): Computes the meridian at a specific longitude angle. The angle is specified in radians.
- [NormalAt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/normalat.md): Computes the normal at a specific angular location on the sphere.
- [PointAt](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/pointat.md): Evaluates the sphere at specific longitude and latitude angles.
- [Rotate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/rotate.md): (4 overloads) Rotates this sphere about a point and an axis.
- [ToBrep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/tobrep.md): Converts this sphere is it Brep representation
- [ToNurbsSurface](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/tonurbssurface.md): Converts this sphere to its NurbsSurface representation. This is synonymous with calling NurbsSurface.CreateFromSphere().
- [ToRevSurface](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/torevsurface.md): Converts this Sphere to a RevSurface representation. This is synonymous with calling RevSurface.CreateFromSphere().
- [Transform](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/transform.md): Transforms this sphere. Note that non-similarity preserving transformations cannot be applied to a sphere as that would result in an ellipsoid.
- [Translate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sphere/translate.md): Moves this sphere along a motion vector.
