Class RectangularPrism3dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.AbstractShape3dfx<RectangularPrism3dfx>
-
- org.arakhne.afc.math.geometry.d3.dfx.RectangularPrism3dfx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Prism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
,RectangularPrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
,Shape3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
,Shape3dfx<RectangularPrism3dfx>
,Shape3D<Shape3dfx<?>,RectangularPrism3dfx,PathIterator3afp<PathElement3dfx>,Point3dfx,Vector3dfx,RectangularPrism3dfx>
,JsonableObject
public class RectangularPrism3dfx extends AbstractShape3dfx<RectangularPrism3dfx> implements RectangularPrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
Rectangular Prism with 3 double precision floating-point FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Olivier LAMOTTE, Hamza JAFFALI, 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.afp.RectangularPrism3afp
RectangularPrism3afp.RectanglePathIterator<T extends PathElement3afp>, RectangularPrism3afp.TransformedRectanglePathIterator<T extends PathElement3afp>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d3.dfx.AbstractShape3dfx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description RectangularPrism3dfx()
Construct an empty rectangular prism.RectangularPrism3dfx(double x, double y, double z, double width, double height, double depth)
Construct a rectangle.RectangularPrism3dfx(RectangularPrism3afp<?,?,?,?,?,?> rectangularPrism)
Constructor by copy.RectangularPrism3dfx(Point3dfx min, Point3dfx max)
Construct a recatngular prism by setting the minimum and maximum corners.RectangularPrism3dfx(RectangularPrism3dfx rectangularPrism)
Constructor by setting.RectangularPrism3dfx(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<RectangularPrism3dfx>
boundingBoxProperty()
Replies the property that contains the bounding box for this shape.RectangularPrism3dfx
clone()
Clone this shape.javafx.beans.property.DoubleProperty
depthProperty()
Replies the property that is the depth of the box.double
getDepth()
Replies the depth.double
getHeight()
Replies the height.double
getMaxX()
Replies the max x.double
getMaxY()
Replies the max y.double
getMaxZ()
Replies the max z.double
getMinX()
Replies the min X.double
getMinY()
Replies the min y.double
getMinZ()
Replies the min z.double
getWidth()
Replies the width.int
hashCode()
javafx.beans.property.DoubleProperty
heightProperty()
Replies the property that is the height of the box.javafx.beans.property.DoubleProperty
maxXProperty()
Replies the property that is the maximum x coordinate of the box.javafx.beans.property.DoubleProperty
maxYProperty()
Replies the property that is the maximum y coordinate of the box.javafx.beans.property.DoubleProperty
maxZProperty()
Replies the property that is the maximum z coordinate of the box.javafx.beans.property.DoubleProperty
minXProperty()
Replies the property that is the minimum x coordinate of the box.javafx.beans.property.DoubleProperty
minYProperty()
Replies the property that is the minimum y coordinate of the box.javafx.beans.property.DoubleProperty
minZProperty()
Replies the property that is the minimum z coordinate of the box.void
setFromCorners(double x1, double y1, double z1, double x2, double y2, double z2)
Change the frame of the rectangular prism conserving previous min and max if needed.void
setMaxX(double x)
Set the max X conserving previous max if needed.void
setMaxY(double y)
Set the max Y conserving previous max if needed.void
setMaxZ(double z)
Set the max Z conserving previous max if needed.void
setMinX(double x)
Set the min X conserving previous min if needed.void
setMinY(double y)
Set the min Y conserving previous min if needed.void
setMinZ(double z)
Set the min Z conserving previous min if needed.javafx.beans.property.DoubleProperty
widthProperty()
Replies the property that is the width of the box.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.dfx.AbstractShape3dfx
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.afp.Prism3afp
clear, getCenter, getCenterX, getCenterY, getCenterZ, inflate, isEmpty, set, set, setCenter, setCenter, setCenterX, setCenterY, setCenterZ, setDepth, setFromCenter, setFromCenter, setFromCorners, setHeight, setWidth, toBoundingBox, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.afp.RectangularPrism3afp
add, add, avoidCollisionWith, avoidCollisionWith, contains, contains, createIntersection, createUnion, equalsToShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getPathIterator, intersects, intersects, intersects, intersects, intersects, set, setIntersection, setUnion
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.afp.Shape3afp
contains, contains, createTransformedShape, getClosestPointTo, 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
-
RectangularPrism3dfx
public RectangularPrism3dfx()
Construct an empty rectangular prism.
-
RectangularPrism3dfx
public RectangularPrism3dfx(Point3D<?,?> min, Point3D<?,?> max)
Construct a rectangular prism with the given minimum and maximum corners.- Parameters:
min
- is the min corner of the rectangular prism.max
- is the max corner of the rectangular prism.
-
RectangularPrism3dfx
public RectangularPrism3dfx(Point3dfx min, Point3dfx max)
Construct a recatngular prism by setting the minimum and maximum corners.- Parameters:
min
- is the point to set as the min corner of the rectangular prism.max
- is the point to set as the max corner of the rectangular prism.
-
RectangularPrism3dfx
public RectangularPrism3dfx(double x, double y, double z, double width, double height, double depth)
Construct a rectangle.- 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.
-
RectangularPrism3dfx
public RectangularPrism3dfx(RectangularPrism3afp<?,?,?,?,?,?> rectangularPrism)
Constructor by copy.- Parameters:
rectangularPrism
- the shape to copy.
-
RectangularPrism3dfx
public RectangularPrism3dfx(RectangularPrism3dfx rectangularPrism)
Constructor by setting.- Parameters:
rectangularPrism
- the shape to set.
-
-
Method Detail
-
clone
public RectangularPrism3dfx clone()
Description copied from interface:Shape3D
Clone this shape.- Specified by:
clone
in interfaceShape3D<Shape3dfx<?>,RectangularPrism3dfx,PathIterator3afp<PathElement3dfx>,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Overrides:
clone
in classAbstractShape3dfx<RectangularPrism3dfx>
- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape3dfx<RectangularPrism3dfx>
-
setFromCorners
public void setFromCorners(double x1, double y1, double z1, double x2, double y2, double z2)
Description copied from interface:Prism3afp
Change the frame of the rectangular prism conserving previous min and max if needed.- Specified by:
setFromCorners
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- 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 second corner.
-
getMinX
@Pure public double getMinX()
Description copied from interface:Prism3afp
Replies the min X.- Specified by:
getMinX
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the min x.
-
setMinX
public void setMinX(double x)
Description copied from interface:Prism3afp
Set the min X conserving previous min if needed.- Specified by:
setMinX
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Parameters:
x
- the min x.
-
minXProperty
@Pure public javafx.beans.property.DoubleProperty minXProperty()
Replies the property that is the minimum x coordinate of the box.- Returns:
- the minX property.
-
getMaxX
@Pure public double getMaxX()
Description copied from interface:Prism3afp
Replies the max x.- Specified by:
getMaxX
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the max x.
-
setMaxX
public void setMaxX(double x)
Description copied from interface:Prism3afp
Set the max X conserving previous max if needed.- Specified by:
setMaxX
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Parameters:
x
- the max x.
-
maxXProperty
@Pure public javafx.beans.property.DoubleProperty maxXProperty()
Replies the property that is the maximum x coordinate of the box.- Returns:
- the maxX property.
-
getMinY
@Pure public double getMinY()
Description copied from interface:Prism3afp
Replies the min y.- Specified by:
getMinY
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the min y.
-
setMinY
public void setMinY(double y)
Description copied from interface:Prism3afp
Set the min Y conserving previous min if needed.- Specified by:
setMinY
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Parameters:
y
- the min y.
-
minYProperty
@Pure public javafx.beans.property.DoubleProperty minYProperty()
Replies the property that is the minimum y coordinate of the box.- Returns:
- the minY property.
-
getMaxY
@Pure public double getMaxY()
Description copied from interface:Prism3afp
Replies the max y.- Specified by:
getMaxY
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the max y.
-
setMaxY
public void setMaxY(double y)
Description copied from interface:Prism3afp
Set the max Y conserving previous max if needed.- Specified by:
setMaxY
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Parameters:
y
- the max y.
-
maxYProperty
@Pure public javafx.beans.property.DoubleProperty maxYProperty()
Replies the property that is the maximum y coordinate of the box.- Returns:
- the maxY property.
-
getMinZ
@Pure public double getMinZ()
Description copied from interface:Prism3afp
Replies the min z.- Specified by:
getMinZ
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the min z.
-
setMinZ
public void setMinZ(double z)
Description copied from interface:Prism3afp
Set the min Z conserving previous min if needed.- Specified by:
setMinZ
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Parameters:
z
- the min z.
-
minZProperty
@Pure public javafx.beans.property.DoubleProperty minZProperty()
Replies the property that is the minimum z coordinate of the box.- Returns:
- the minZ property.
-
getMaxZ
@Pure public double getMaxZ()
Description copied from interface:Prism3afp
Replies the max z.- Specified by:
getMaxZ
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the max z.
-
setMaxZ
public void setMaxZ(double z)
Description copied from interface:Prism3afp
Set the max Z conserving previous max if needed.- Specified by:
setMaxZ
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Parameters:
z
- the max z.
-
maxZProperty
@Pure public javafx.beans.property.DoubleProperty maxZProperty()
Replies the property that is the maximum z coordinate of the box.- Returns:
- the maxZ property.
-
getWidth
public double getWidth()
Description copied from interface:Prism3afp
Replies the width.- Specified by:
getWidth
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the width.
-
widthProperty
@Pure public javafx.beans.property.DoubleProperty widthProperty()
Replies the property that is the width of the box.- Returns:
- the width property.
-
getHeight
public double getHeight()
Description copied from interface:Prism3afp
Replies the height.- Specified by:
getHeight
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the height.
-
heightProperty
@Pure public javafx.beans.property.DoubleProperty heightProperty()
Replies the property that is the height of the box.- Returns:
- the height property.
-
getDepth
public double getDepth()
Description copied from interface:Prism3afp
Replies the depth.- Specified by:
getDepth
in interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the depth.
-
depthProperty
@Pure public javafx.beans.property.DoubleProperty depthProperty()
Replies the property that is the depth of the box.- Returns:
- the depth property.
-
boundingBoxProperty
public javafx.beans.property.ObjectProperty<RectangularPrism3dfx> boundingBoxProperty()
Description copied from interface:Shape3dfx
Replies the property that contains the bounding box for this shape.- Specified by:
boundingBoxProperty
in interfaceShape3dfx<RectangularPrism3dfx>
- Returns:
- the bounding box.
-
-