Class TransformForAxisParallelism
- java.lang.Object
-
- com.treasure.hunt.strategy.searcher.impl.minimumRectangleStrategy.TransformForAxisParallelism
-
public class TransformForAxisParallelism extends java.lang.Object
For more information what internal and external refers to please look in the documentation of MinimumRectangleSearcher- See Also:
MinimumRectangleSearcher
-
-
Constructor Summary
Constructors Constructor Description TransformForAxisParallelism(HalfPlaneHint hint, org.locationtech.jts.geom.Point internalCenterInExternalRepresentation)
Creates a transformer where the HalfPlaneHint hint in internal coordinates is parallel to the x-axis and shows upwards and the internalCenterInExternalRepresentation is the point (0,0) in internal coordinates.TransformForAxisParallelism(org.locationtech.jts.geom.LineSegment line)
Creates a transformer where the line line in internal coordinate is parallel to the x-axis and the point line.p0 is (0,0) in internal coordinates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAngle()
-
-
-
Constructor Detail
-
TransformForAxisParallelism
public TransformForAxisParallelism(HalfPlaneHint hint, org.locationtech.jts.geom.Point internalCenterInExternalRepresentation)
Creates a transformer where the HalfPlaneHint hint in internal coordinates is parallel to the x-axis and shows upwards and the internalCenterInExternalRepresentation is the point (0,0) in internal coordinates.- Parameters:
hint
- the internal x-axis is parallel tointernalCenterInExternalRepresentation
- the internal center (point (0,0)) in external coordinates
-
TransformForAxisParallelism
public TransformForAxisParallelism(org.locationtech.jts.geom.LineSegment line)
Creates a transformer where the line line in internal coordinate is parallel to the x-axis and the point line.p0 is (0,0) in internal coordinates.
-
-