SphericalBall

References
public struct SphericalBall
Represents a spherical volume.

Constructors

SphericalBall

#
Create a new sphere.
public SphericalBall(
centre,
Centre of sphere.
radius
Radius od sphere.
)

SphericalBall

#
Create a new spatial sphere from a rhinocommon sphere.
public SphericalBall(
sphere
Sphere.
)

Properties

Area

#
Gets the area of this sphere.
public double Area { get; }

Centre

#
Gets the centre of this sphere.
public Locus Centre { get; }

Circumference

#
Gets the circumference of this sphere.
public double Circumference { get; }

Diameter

#
Gets the diameter of this sphere.
public double Diameter { get; }

IsEmpty

#
Gets whether this sphere is (nearly) empty.
public bool IsEmpty { get; }

IsInfinite

#
Gets whether this sphere is infinite.
public bool IsInfinite { get; }

IsUnset

#
Gets whether this sphere is unset.
public bool IsUnset { get; }

Norm

#
Gets the norm of this sphere (the radius squared).
public double Norm { get; }

Radius

#
Gets the radius of this sphere.
public double Radius { get; }

Volume

#
Gets the volume of this sphere.
public double Volume { get; }

Methods

ClosestPoint

#
Gets the point on or in the sphere closest to another point.
public Locus ClosestPoint(
point
Point to project.
)
Point in or on the sphere closest to the given point.

DistanceToFurthestPoint

#
Gets the distance from the interior of this sphere to a point.
public double DistanceToFurthestPoint(
point
Point.
)
Distance from sphere to point.

DistanceToNearestPoint

#
Gets the distance from the interior of this sphere to a point.
public double DistanceToNearestPoint(
point
Point.
)
Distance from sphere to point.

FurthestPoint

#
Gets the point on the sphere furthest from another point.
public Locus FurthestPoint(
point
Point to project.
)
Point on the sphere furthest from the given point.

IsInside

#
Gets whether a point is on or in the sphere.
public bool IsInside(
point
Point to test.
)
True if point is inside or on the sphere.

QuadranceToFurthestPoint

#
Gets the largest quadrance from the interior of this sphere to a point.
public double QuadranceToFurthestPoint(
point
Point to test.
)
Quadrance.

QuadranceToNearestPoint

#
Gets the quadrance from the interior of this sphere to a point.
public double QuadranceToNearestPoint(
point
Point to test.
)
Quadrance.

QuadranceToPoint

#
Measure the minimum and maximum quadrance to a point.
public void QuadranceToPoint(
point,
Point.
out double
min,
Minimum quadrance.
out double
max
Maximum quadrance.
)

ToString

#
Returns the fully qualified type name of this instance.
public override string ToString()
A String containing a fully qualified type name.