# SphereRotation class

Namespace: [Grasshopper2.UI.ColourPicker.Models](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.colourpicker.models.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class SphereRotation : IComparable<SphereRotation>, IEquatable<SphereRotation>
```

Represents immutable view properties

## Constructors

- [SphereRotation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/ctor.md): Sphere orientation.

## Properties

- [Perpendicular](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/perpendicular.md): Gets the four dimensional rotation factor.
- [Plane](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/plane.md): Gets the base plane orientation.
- [XAxis](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/xaxis.md): Gets the base plane x-axis orientation.
- [YAxis](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/yaxis.md): Gets the base plane y-axis orientation.
- [ZAxis](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/zaxis.md): Gets the base plane z-axis orientation.

## Methods

- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/gethashcode.md): Serves as the default hash function.
- [Rotate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/rotate.md): (2 overloads) Rotate from one position to another.
- [Sphere](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/sphere.md): Gets a sphere that fits into a frame.
- [IComparable<SphereRotation>.CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/system-icomparable-grasshopper2-ui-colourpicker-models-sphererotation-compareto.md)
- [IEquatable<SphereRotation>.Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.colourpicker.models.sphererotation/system-iequatable-grasshopper2-ui-colourpicker-models-sphererotation-equals.md)
