Class RectangularPrism3ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ifx.AbstractShape3ifx<RectangularPrism3ifx>
-
- org.arakhne.afc.math.geometry.d3.ifx.RectangularPrism3ifx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Prism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
,RectangularPrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
,Shape3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
,Shape3ifx<RectangularPrism3ifx>
,Shape3D<Shape3ifx<?>,RectangularPrism3ifx,PathIterator3ai<PathElement3ifx>,Point3ifx,Vector3ifx,RectangularPrism3ifx>
,JsonableObject
public class RectangularPrism3ifx extends AbstractShape3ifx<RectangularPrism3ifx> implements RectangularPrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
A rectangular prism with 3 integer FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d3.ai.RectangularPrism3ai
RectangularPrism3ai.RectanglePathIterator<E extends PathElement3ai>, RectangularPrism3ai.RectangleSideIterator<P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>>, RectangularPrism3ai.Side, RectangularPrism3ai.TransformedRectanglePathIterator<E extends PathElement3ai>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d3.ifx.AbstractShape3ifx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description RectangularPrism3ifx()
Construct an empty rectangle.RectangularPrism3ifx(int x, int y, int z, int width, int height, int depth)
Construct a rectangle with the given minimum corner and sizes.RectangularPrism3ifx(RectangularPrism3ai<?,?,?,?,?,?> rectangle)
Constructor by copy.RectangularPrism3ifx(Point3ifx min, Point3ifx max)
Construct a rectangular prism by setting the given minimum and maximum corners.RectangularPrism3ifx(RectangularPrism3ifx rectangle)
Constructor by setting.RectangularPrism3ifx(Point3D<?,?> min, Point3D<?,?> max)
Construct a rectangular prism with the given minimum and maximum corners.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ObjectProperty<RectangularPrism3ifx>
boundingBoxProperty()
Replies the property that contains the bounding box for this shape.RectangularPrism3ifx
clone()
Clone this shape.javafx.beans.property.IntegerProperty
depthProperty()
Replies the property that is the depth of the box.int
getDepth()
Replies the depth.int
getHeight()
Replies the height.int
getMaxX()
Replies the max x.int
getMaxY()
Replies the max y.int
getMaxZ()
Replies the max z.int
getMinX()
Replies the min X.int
getMinY()
Replies the min y.int
getMinZ()
Replies the min z.int
getWidth()
Replies the width.int
hashCode()
javafx.beans.property.IntegerProperty
heightProperty()
Replies the property that is the height of the box.javafx.beans.property.IntegerProperty
maxXProperty()
Replies the property that is the maximum x coordinate of the box.javafx.beans.property.IntegerProperty
maxYProperty()
Replies the property that is the maximum y coordinate of the box.javafx.beans.property.IntegerProperty
maxZProperty()
Replies the property that is the maximum z coordinate of the box.javafx.beans.property.IntegerProperty
minXProperty()
Replies the property that is the minimum x coordinate of the box.javafx.beans.property.IntegerProperty
minYProperty()
Replies the property that is the minimum y coordinate of the box.javafx.beans.property.IntegerProperty
minZProperty()
Replies the property that is the minimum z coordinate of the box.void
setFromCorners(int x1, int y1, int z1, int x2, int y2, int z2)
Change the frame of the prism conserving previous min and max if needed.void
setMaxX(int x)
Set the max X conserving previous max if needed.void
setMaxY(int y)
Set the max Y conserving previous max if needed.void
setMaxZ(int z)
Set the max Z conserving previous max if needed.void
setMinX(int x)
Set the min X conserving previous min if needed.void
setMinY(int y)
Set the min Y conserving previous min if needed.void
setMinZ(int z)
Set the min Z conserving previous min if needed.javafx.beans.property.IntegerProperty
widthProperty()
Replies the property that is the width of the box.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.ifx.AbstractShape3ifx
equals, getGeomFactory, toJson, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.Prism3ai
clear, getCenterX, getCenterY, getCenterZ, inflate, isEmpty, set, set, setDepth, setFromCenter, setFromCenter, setFromCorners, setHeight, setWidth, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.RectangularPrism3ai
contains, contains, createIntersection, createUnion, equalsToShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getPathIterator, getPointIterator, getPointIterator, intersects, intersects, intersects, intersects, intersects, set, setIntersection, setUnion
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.Shape3ai
contains, contains, createTransformedShape, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getGeomFactory, intersects, intersects, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Shape3D
equalsToPathIterator, getDistance, getDistance, getPathIterator, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo
-
-
-
-
Constructor Detail
-
RectangularPrism3ifx
public RectangularPrism3ifx()
Construct an empty rectangle.
-
RectangularPrism3ifx
public RectangularPrism3ifx(Point3D<?,?> min, Point3D<?,?> max)
Construct a rectangular prism with the given minimum and maximum corners.- Parameters:
min
- is the min corner of the rectangle.max
- is the max corner of the rectangle.
-
RectangularPrism3ifx
public RectangularPrism3ifx(Point3ifx min, Point3ifx max)
Construct a rectangular prism by setting the given minimum and maximum corners.- Parameters:
min
- is the min corner of the rectangle.max
- is the max corner of the rectangle.
-
RectangularPrism3ifx
public RectangularPrism3ifx(int x, int y, int z, int width, int height, int depth)
Construct a rectangle with the given minimum corner and sizes.- Parameters:
x
- x coordinate of the minimum corner.y
- y coordinate of the minimum corner.z
- z coordinate of the minimum corner.width
- width of the rectangle.height
- height of the rectangle.depth
- depth of the rectangle.
-
RectangularPrism3ifx
public RectangularPrism3ifx(RectangularPrism3ai<?,?,?,?,?,?> rectangle)
Constructor by copy.- Parameters:
rectangle
- the rectangle to copy.
-
RectangularPrism3ifx
public RectangularPrism3ifx(RectangularPrism3ifx rectangle)
Constructor by setting.- Parameters:
rectangle
- the rectangle to set.
-
-
Method Detail
-
clone
public RectangularPrism3ifx clone()
Description copied from interface:Shape3D
Clone this shape.- Specified by:
clone
in interfaceShape3D<Shape3ifx<?>,RectangularPrism3ifx,PathIterator3ai<PathElement3ifx>,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Overrides:
clone
in classAbstractShape3ifx<RectangularPrism3ifx>
- Returns:
- the clone.
-
setFromCorners
public void setFromCorners(int x1, int y1, int z1, int x2, int y2, int z2)
Description copied from interface:Prism3ai
Change the frame of the prism conserving previous min and max if needed.- Specified by:
setFromCorners
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
x1
- is the coordinate of the first corner.y1
- is the coordinate of the first corner.z1
- is the coordinate of the first corner.x2
- is the coordinate of the second corner.y2
- is the coordinate of the second corner.z2
- is the coordinate of the first corner.
-
getMinX
@Pure public int getMinX()
Description copied from interface:Prism3ai
Replies the min X.- Specified by:
getMinX
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the min x.
-
setMinX
public void setMinX(int x)
Description copied from interface:Prism3ai
Set the min X conserving previous min if needed.- Specified by:
setMinX
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
x
- the min x.
-
minXProperty
@Pure public javafx.beans.property.IntegerProperty minXProperty()
Replies the property that is the minimum x coordinate of the box.- Returns:
- the minX property.
-
getMaxX
@Pure public int getMaxX()
Description copied from interface:Prism3ai
Replies the max x.- Specified by:
getMaxX
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the max x.
-
setMaxX
public void setMaxX(int x)
Description copied from interface:Prism3ai
Set the max X conserving previous max if needed.- Specified by:
setMaxX
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
x
- the max x.
-
maxXProperty
@Pure public javafx.beans.property.IntegerProperty maxXProperty()
Replies the property that is the maximum x coordinate of the box.- Returns:
- the maxX property.
-
getMinY
@Pure public int getMinY()
Description copied from interface:Prism3ai
Replies the min y.- Specified by:
getMinY
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the min y.
-
setMinY
public void setMinY(int y)
Description copied from interface:Prism3ai
Set the min Y conserving previous min if needed.- Specified by:
setMinY
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
y
- the min y.
-
minYProperty
@Pure public javafx.beans.property.IntegerProperty minYProperty()
Replies the property that is the minimum y coordinate of the box.- Returns:
- the minY property.
-
getMaxY
@Pure public int getMaxY()
Description copied from interface:Prism3ai
Replies the max y.- Specified by:
getMaxY
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the max y.
-
setMaxY
public void setMaxY(int y)
Description copied from interface:Prism3ai
Set the max Y conserving previous max if needed.- Specified by:
setMaxY
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
y
- the max y.
-
maxYProperty
@Pure public javafx.beans.property.IntegerProperty maxYProperty()
Replies the property that is the maximum y coordinate of the box.- Returns:
- the maxY property.
-
getMinZ
@Pure public int getMinZ()
Description copied from interface:Prism3ai
Replies the min z.- Specified by:
getMinZ
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the min z.
-
setMinZ
public void setMinZ(int z)
Description copied from interface:Prism3ai
Set the min Z conserving previous min if needed.- Specified by:
setMinZ
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
z
- the min z.
-
minZProperty
@Pure public javafx.beans.property.IntegerProperty minZProperty()
Replies the property that is the minimum z coordinate of the box.- Returns:
- the minZ property.
-
getMaxZ
@Pure public int getMaxZ()
Description copied from interface:Prism3ai
Replies the max z.- Specified by:
getMaxZ
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the max z.
-
setMaxZ
public void setMaxZ(int z)
Description copied from interface:Prism3ai
Set the max Z conserving previous max if needed.- Specified by:
setMaxZ
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
z
- the max z.
-
maxZProperty
@Pure public javafx.beans.property.IntegerProperty maxZProperty()
Replies the property that is the maximum z coordinate of the box.- Returns:
- the maxZ property.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape3ifx<RectangularPrism3ifx>
-
getWidth
public int getWidth()
Description copied from interface:Prism3ai
Replies the width.- Specified by:
getWidth
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the width.
-
widthProperty
@Pure public javafx.beans.property.IntegerProperty widthProperty()
Replies the property that is the width of the box.- Returns:
- the width property.
-
getHeight
public int getHeight()
Description copied from interface:Prism3ai
Replies the height.- Specified by:
getHeight
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the height.
-
heightProperty
@Pure public javafx.beans.property.IntegerProperty heightProperty()
Replies the property that is the height of the box.- Returns:
- the height property.
-
getDepth
public int getDepth()
Description copied from interface:Prism3ai
Replies the depth.- Specified by:
getDepth
in interfacePrism3ai<Shape3ifx<?>,RectangularPrism3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the depth.
-
depthProperty
@Pure public javafx.beans.property.IntegerProperty depthProperty()
Replies the property that is the depth of the box.- Returns:
- the depth property.
-
boundingBoxProperty
public javafx.beans.property.ObjectProperty<RectangularPrism3ifx> boundingBoxProperty()
Description copied from interface:Shape3ifx
Replies the property that contains the bounding box for this shape.- Specified by:
boundingBoxProperty
in interfaceShape3ifx<RectangularPrism3ifx>
- Returns:
- the bounding box.
-
-