SphericalBall

References
public struct SphericalBall
Represents a spherical volume.

Constructors

SphericalBall

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

SphericalBall

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

Properties

Area

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

Centre

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

Circumference

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

Diameter

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

IsEmpty

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

IsInfinite

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

IsUnset

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

Norm

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

Radius

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

Volume

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

Methods

ClosestPoint

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

DistanceToFurthestPoint

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

DistanceToNearestPoint

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

FurthestPoint

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

IsInside

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

QuadranceToFurthestPoint

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

QuadranceToNearestPoint

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

QuadranceToPoint

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

ToString

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