Top Description Fields Constructors Methods
org.apache.commons.math3.geometry.spherical.oned

public Class LimitAngle

extends Object
implements Hyperplane<Sphere1D>
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.geometry.partitioning.Hyperplane
Imports
org.apache.commons.math3.geometry.Point, org.apache.commons.math3.geometry.partitioning.Hyperplane

This class represents a 1D oriented hyperplane on the circle.

An hyperplane on the 1-sphere is an angle with an orientation.

Instances of this class are guaranteed to be immutable.

Since
3.3

Field Summary

Modifier and TypeField and Description
private boolean
direct

Orientation.

private S1Point
location

Angle location.

private final double
tolerance

Tolerance below which angles are considered identical.

Constructor Summary

AccessConstructor and Description
public
LimitAngle(final S1Point
location of the hyperplane
location
,
final boolean
if true, the plus side of the hyperplane is towards angles greater than location
direct
,
final double
tolerance below which angles are considered identical
tolerance
)

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public LimitAngle

Returns:

the instance itself
copySelf
()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.copySelf.

Copy the instance.

public S1Point

Returns:

the hyperplane location
getLocation
()

Get the hyperplane location on the circle.

public double
getOffset(final Point<Sphere1D>
point to check
point
)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getOffset.

Get the offset (oriented distance) of a point.

public LimitAngle

Returns:

a new limit angle, with orientation opposite to the instance orientation
getReverse
()

Get the reverse of the instance.

public double
getTolerance()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getTolerance.

Get the tolerance below which points are considered to belong to the hyperplane.

public boolean

Returns:

true if the plus side of the hyperplane is towards angles greater than hyperplane location
isDirect
()

Check if the hyperplane orientation is direct.

public Point<Sphere1D>
project(Point<Sphere1D>
point to project
point
)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.project.

Project a point to the hyperplane.

public boolean
sameOrientationAs(final Hyperplane<Sphere1D>
other hyperplane to check against the instance
other
)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.sameOrientationAs.

Check if the instance has the same orientation as another hyperplane.

public SubLimitAngle

Returns:

a dummy sub hyperplane
wholeHyperplane
()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeHyperplane.

Build a region covering the whole hyperplane.

public ArcsSet

Returns:

a region containing the instance (really an IntervalsSet instance)
wholeSpace
()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeSpace.

Build a region covering the whole space.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

directback to summary
private boolean direct

Orientation.

locationback to summary
private S1Point location

Angle location.

toleranceback to summary
private final double tolerance

Tolerance below which angles are considered identical.

Constructor Detail

LimitAngleback to summary
public LimitAngle(final S1Point location, final boolean direct, final double tolerance)

Simple constructor.

Parameters
location:S1Point

location of the hyperplane

direct:boolean

if true, the plus side of the hyperplane is towards angles greater than location

tolerance:double

tolerance below which angles are considered identical

Method Detail

copySelfback to summary
public LimitAngle copySelf()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.copySelf.

Copy the instance.

Since instances are immutable, this method directly returns the instance.

Returns:LimitAngle

the instance itself

getLocationback to summary
public S1Point getLocation()

Get the hyperplane location on the circle.

Returns:S1Point

the hyperplane location

getOffsetback to summary
public double getOffset(final Point<Sphere1D> point)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getOffset.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.getOffset.

Get the offset (oriented distance) of a point.

The offset is 0 if the point is on the underlying hyperplane, it is positive if the point is on one particular side of the hyperplane, and it is negative if the point is on the other side, according to the hyperplane natural orientation.

Parameters
point:Point<Sphere1D>

point to check

Returns:double

offset of the point

getReverseback to summary
public LimitAngle getReverse()

Get the reverse of the instance.

Get a limit angle with reversed orientation with respect to the instance. A new object is built, the instance is untouched.

Returns:LimitAngle

a new limit angle, with orientation opposite to the instance orientation

getToleranceback to summary
public double getTolerance()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getTolerance.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.getTolerance.

Get the tolerance below which points are considered to belong to the hyperplane.

Returns:double

tolerance below which points are considered to belong to the hyperplane

isDirectback to summary
public boolean isDirect()

Check if the hyperplane orientation is direct.

Returns:boolean

true if the plus side of the hyperplane is towards angles greater than hyperplane location

projectback to summary
public Point<Sphere1D> project(Point<Sphere1D> point)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.project.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.project.

Project a point to the hyperplane.

Parameters
point:Point<Sphere1D>

point to project

Returns:Point<Sphere1D>

projected point

sameOrientationAsback to summary
public boolean sameOrientationAs(final Hyperplane<Sphere1D> other)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.sameOrientationAs.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.sameOrientationAs.

Check if the instance has the same orientation as another hyperplane.

This method is expected to be called on parallel hyperplanes. The method should not re-check for parallelism, only for orientation, typically by testing something like the sign of the dot-products of normals.

Parameters
other:Hyperplane<Sphere1D>

other hyperplane to check against the instance

Returns:boolean

true if the instance and the other hyperplane have the same orientation

wholeHyperplaneback to summary
public SubLimitAngle wholeHyperplane()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeHyperplane.

Build a region covering the whole hyperplane.

Since this class represent zero dimension spaces which does not have lower dimension sub-spaces, this method returns a dummy implementation of a SubHyperplane. This implementation is only used to allow the SubHyperplane class implementation to work properly, it should not be used otherwise.

Returns:SubLimitAngle

a dummy sub hyperplane

wholeSpaceback to summary
public ArcsSet wholeSpace()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeSpace.

Build a region covering the whole space.

Returns:ArcsSet

a region containing the instance (really an IntervalsSet instance)