Class Sphere
Class defining a sphere in three-dimensional euclidean space.
Implements
Namespace: BRIDGES.Geometry.Euclidean3D
Assembly: BRIDGES.dll
Syntax
public class Sphere : IEquatable<Sphere>, IGeometricallyEquatable<Sphere>
Constructors
| Improve this Doc View SourceSphere(Frame, Double)
Initialises a new instance of the Sphere class by defining its centre and radius.
Declaration
public Sphere(Frame frame, double radius)
Parameters
Type | Name | Description |
---|---|---|
Frame | frame | Orthogonal frame defining the centre and orientation of the Sphere. |
Double | radius | Radius of the Sphere. |
Sphere(Point, Double)
Initialises a new instance of the Sphere class by defining its centre and radius.
Declaration
public Sphere(Point centre, double radius)
Parameters
Type | Name | Description |
---|---|---|
Point | centre | Centre of the Sphere. |
Double | radius | Radius of the Sphere. |
Properties
| Improve this Doc View SourceCentre
Gets or sets the centre of the current Sphere.
Declaration
public Point Centre { get; set; }
Property Value
Type | Description |
---|---|
Point |
Frame
Gets or sets the orthogonal frame defining the centre and the orientation of the current Sphere.
Declaration
public Frame Frame { get; set; }
Property Value
Type | Description |
---|---|
Frame |
Radius
Gets or sets the radius of the current Sphere.
Declaration
public double Radius { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceEquals(Sphere)
Declaration
public bool Equals(Sphere other)
Parameters
Type | Name | Description |
---|---|---|
Sphere | other | Sphere to compare with. |
Returns
Type | Description |
---|---|
Boolean | true if the two Sphere are equal, false otherwise. |
Remarks
Two Sphere are equal if their centre and radius are equal.
Equals(Object)
Class defining a sphere in three-dimensional euclidean space.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
GeometricallyEquals(Sphere)
Evaluates whether the current object is geometrically equal to the given T
.
Declaration
public bool GeometricallyEquals(Sphere other)
Parameters
Type | Name | Description |
---|---|---|
Sphere | other |
Returns
Type | Description |
---|---|
Boolean | true if the two objects are geometrically equal, false otherwise. |
GetHashCode()
Class defining a sphere in three-dimensional euclidean space.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Class defining a sphere in three-dimensional euclidean space.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |