public class ImmutableBBox2D extends Object implements BBox2D, Serializable
Constructor and Description |
---|
ImmutableBBox2D(BBox2D bBox2D) |
ImmutableBBox2D(double x0,
double y0,
double x1,
double y1) |
ImmutableBBox2D(Point2D _southWest,
Point2D _northEast) |
Modifier and Type | Method and Description |
---|---|
protected Point2D[] |
_fixBoundings(Point2D p0,
Point2D p1) |
ImmutableBBox2D |
copy() |
double |
getArea() |
List<Point2D> |
getBounds() |
Point2D |
getCentroid() |
tr.com.terrayazilim.core.unit.DimensionUnit |
getDimensionUnit() |
double |
getHeight() |
Point2D |
getNorthEast() |
Point2D |
getNorthWest() |
ShapeUnit |
getShapeUnit() |
Point2D |
getSouthEast() |
Point2D |
getSouthWest() |
double |
getWidth() |
boolean |
isBounded() |
ImmutableBBox2D |
scale(double scaleFactor) |
BBox2D |
setNorthEast(Point2D point2D) |
BBox2D |
setSouthWest(Point2D point2D) |
ImmutableBBox2D |
translate(double... args) |
public ImmutableBBox2D(double x0, double y0, double x1, double y1)
x0
- y0
- x1
- y1
- public ImmutableBBox2D(Point2D _southWest, Point2D _northEast)
_southWest
- _northEast
- public ImmutableBBox2D(BBox2D bBox2D)
bBox2D
- protected final Point2D[] _fixBoundings(Point2D p0, Point2D p1)
p0
- p1
- public ImmutableBBox2D scale(double scaleFactor)
public ImmutableBBox2D translate(double... args)
public ImmutableBBox2D copy()
public BBox2D setSouthWest(Point2D point2D)
setSouthWest
in interface BBox2D
public BBox2D setNorthEast(Point2D point2D)
setNorthEast
in interface BBox2D
public Point2D getNorthWest()
getNorthWest
in interface BBox2D
getNorthWest
in interface Envelope2D
public Point2D getSouthEast()
getSouthEast
in interface BBox2D
getSouthEast
in interface Envelope2D
public Point2D getNorthEast()
getNorthEast
in interface BBox2D
getNorthEast
in interface Envelope2D
public Point2D getSouthWest()
getSouthWest
in interface BBox2D
getSouthWest
in interface Envelope2D
public Point2D getCentroid()
getCentroid
in interface BBox2D
getCentroid
in interface Envelope2D
public ShapeUnit getShapeUnit()
getShapeUnit
in interface BBox2D
getShapeUnit
in interface Envelope2D
getShapeUnit
in interface Shape
public tr.com.terrayazilim.core.unit.DimensionUnit getDimensionUnit()
getDimensionUnit
in interface BBox2D
getDimensionUnit
in interface Envelope2D
getDimensionUnit
in interface Shape
public boolean isBounded()
public double getArea()
getArea
in interface BBox2D
getArea
in interface Envelope2D
public double getHeight()
getHeight
in interface BBox2D
getHeight
in interface Envelope2D
public double getWidth()
getWidth
in interface BBox2D
getWidth
in interface Envelope2D
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.