Skip to content

Sphere

Public Struct

Represents the plane and radius values of a sphere.

Namespace: Rhino.Geometry

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

[SerializableAttribute]
public struct Sphere : IEpsilonComparable<Sphere>

The Sphere type exposes the following members.

Constructors

Name

Description


Public Method

Initializes a new sphere given the plane of the equator circle and radius.


Public Method
Code Example

Initializes a new sphere given center point and radius.


Properties

Name

Description


Public Property

Gets the world aligned bounding box for this Sphere. If the Sphere is Invalid, an empty box is returned.


Public Property

Gets or sets the center point of the sphere.


Public Property

Gets or sets the diameter for this sphere.


Public Property

Gets or sets the Equatorial plane for this sphere.


Public Property

Gets a value that indicates whether the sphere is valid.


Public Property

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.


Public Property

Gets or sets the Radius for this sphere.


Public Property

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.


Public Property
Static Member

Gets a sphere with invalid members.


Methods

Name

Description


Public Method

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


Public Method

Returns point on sphere that is closest to given point.


Public Method

Check that all values in other are within epsilon of the values in this


Public Method

Equals

Indicates whether this instance and a specified object are equal.

(Inherited from ValueType.)


Public Method
Static Member

Attempts to fit a sphere to a collection of points.


Public Method

GetHashCode

Returns the hash code for this instance.

(Inherited from ValueType.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Computes the parallel at a specific latitude angle.

The angle is specified in degrees.


Public Method

Computes the parallel at a specific latitude angle.

The angle is specified in radians.


Public Method

Computes the meridian at a specific longitude angle.

The angle is specified in degrees.


Public Method

Computes the meridian at a specific longitude angle.

The angle is specified in radians.


Public Method

Computes the normal at a specific angular location on the sphere.


Public Method

Evaluates the sphere at specific longitude and latitude angles.


Public Method

Rotates the sphere about the center point.


Public Method

Rotates this sphere about a point and an axis.


Public Method

Rotates this sphere about the center point.


Public Method

Rotates this sphere about a point and an axis.


Public Method

Converts this sphere is it Brep representation


Public Method

Converts this sphere to its NurbsSurface representation. This is synonymous with calling NurbsSurface.CreateFromSphere().


Public Method

Converts this Sphere to a RevSurface representation. This is synonymous with calling RevSurface.CreateFromSphere().


Public Method

ToString

Returns the fully qualified type name of this instance.

(Inherited from ValueType.)


Public Method

Transforms this sphere. Note that non-similarity preserving transformations cannot be applied to a sphere as that would result in an ellipsoid.


Public Method

Moves this sphere along a motion vector.