Class SphereGenerator
- java.lang.Object
-
- org.apache.commons.math3.geometry.euclidean.threed.SphereGenerator
-
- All Implemented Interfaces:
SupportBallGenerator<Euclidean3D,Vector3D>
public class SphereGenerator extends java.lang.Object implements SupportBallGenerator<Euclidean3D,Vector3D>
Class generating an enclosing ball from its support points.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description SphereGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnclosingBall<Euclidean3D,Vector3D>
ballOnSupport(java.util.List<Vector3D> support)
Create a ball whose boundary lies on prescribed support points.private BigFraction
minor(BigFraction[] c1, BigFraction[] c2, BigFraction[] c3)
Compute a dimension 4 minor, when 4th column is known to be filled with 1.0.
-
-
-
Method Detail
-
ballOnSupport
public EnclosingBall<Euclidean3D,Vector3D> ballOnSupport(java.util.List<Vector3D> support)
Create a ball whose boundary lies on prescribed support points.- Specified by:
ballOnSupport
in interfaceSupportBallGenerator<Euclidean3D,Vector3D>
- Parameters:
support
- support points (may be empty)- Returns:
- ball whose boundary lies on the prescribed support points
-
minor
private BigFraction minor(BigFraction[] c1, BigFraction[] c2, BigFraction[] c3)
Compute a dimension 4 minor, when 4th column is known to be filled with 1.0.- Parameters:
c1
- first columnc2
- second columnc3
- third column- Returns:
- value of the minor computed has an exact fraction
-
-