Constructor | Description |
---|---|
Arc(double lower,
double upper,
double tolerance) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Region.Location |
checkPoint(double point) |
Check a point with respect to the arc.
|
double |
getBarycenter() |
Get the barycenter of the arc.
|
double |
getInf() |
Get the lower angular bound of the arc.
|
double |
getSize() |
Get the angular size of the arc.
|
double |
getSup() |
Get the upper angular bound of the arc.
|
double |
getTolerance() |
Get the tolerance below which angles are considered identical.
|
public Arc(double lower, double upper, double tolerance) throws MathIllegalArgumentException
If either lower
is equals to upper
or
the interval exceeds \( 2 \pi \), the arc is considered
to be the full circle and its initial defining boundaries
will be forgotten. lower
is not allowed to be
greater than upper
(an exception is thrown in this case).
lower
will be canonicalized between 0 and \( 2 \pi \), and
upper shifted accordingly, so the getInf()
and getSup()
may not return the value used at instance construction.
lower
- lower angular bound of the arcupper
- upper angular bound of the arctolerance
- tolerance below which angles are considered identicalMathIllegalArgumentException
- if lower is greater than upperpublic double getInf()
public double getSup()
public double getSize()
public double getBarycenter()
public double getTolerance()
public Region.Location checkPoint(double point)
point
- point to checkRegion.Location.INSIDE
, Region.Location.OUTSIDE
or Region.Location.BOUNDARY
Copyright © 2016–2018 Hipparchus.org. All rights reserved.