Constructor and Description |
---|
Arc(double lower,
double upper,
double tolerance)
Simple constructor.
|
Modifier and Type | Method and 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 |
getOffset(double point)
Get the distance (arc length) from a point to the edge of the arc.
|
double |
getOffset(S1Point point)
Get the distance (arc length) from a point to the edge 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 upper
or tolerance is smaller than Sphere1D.SMALLEST_TOLERANCE
public 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
public double getOffset(double point)
This method does not use getTolerance()
.
public double getOffset(S1Point point)
This method does not use getTolerance()
.
Copyright © 2016-2021 CS GROUP. All rights reserved.