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