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.RectangularPrism3dfxclone()Clone this shape.javafx.beans.property.DoublePropertydepthProperty()Replies the property that is the depth of the box.doublegetDepth()Replies the depth.doublegetHeight()Replies the height.doublegetMaxX()Replies the max x.doublegetMaxY()Replies the max y.doublegetMaxZ()Replies the max z.doublegetMinX()Replies the min X.doublegetMinY()Replies the min y.doublegetMinZ()Replies the min z.doublegetWidth()Replies the width.inthashCode()javafx.beans.property.DoublePropertyheightProperty()Replies the property that is the height of the box.javafx.beans.property.DoublePropertymaxXProperty()Replies the property that is the maximum x coordinate of the box.javafx.beans.property.DoublePropertymaxYProperty()Replies the property that is the maximum y coordinate of the box.javafx.beans.property.DoublePropertymaxZProperty()Replies the property that is the maximum z coordinate of the box.javafx.beans.property.DoublePropertyminXProperty()Replies the property that is the minimum x coordinate of the box.javafx.beans.property.DoublePropertyminYProperty()Replies the property that is the minimum y coordinate of the box.javafx.beans.property.DoublePropertyminZProperty()Replies the property that is the minimum z coordinate of the box.voidsetFromCorners(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.voidsetMaxX(double x)Set the max X conserving previous max if needed.voidsetMaxY(double y)Set the max Y conserving previous max if needed.voidsetMaxZ(double z)Set the max Z conserving previous max if needed.voidsetMinX(double x)Set the min X conserving previous min if needed.voidsetMinY(double y)Set the min Y conserving previous min if needed.voidsetMinZ(double z)Set the min Z conserving previous min if needed.javafx.beans.property.DoublePropertywidthProperty()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:Shape3DClone this shape.- Specified by:
clonein interfaceShape3D<Shape3dfx<?>,RectangularPrism3dfx,PathIterator3afp<PathElement3dfx>,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Overrides:
clonein classAbstractShape3dfx<RectangularPrism3dfx>- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classAbstractShape3dfx<RectangularPrism3dfx>
-
setFromCorners
public void setFromCorners(double x1, double y1, double z1, double x2, double y2, double z2)Description copied from interface:Prism3afpChange the frame of the rectangular prism conserving previous min and max if needed.- Specified by:
setFromCornersin 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:Prism3afpReplies the min X.- Specified by:
getMinXin interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the min x.
-
setMinX
public void setMinX(double x)
Description copied from interface:Prism3afpSet the min X conserving previous min if needed.- Specified by:
setMinXin 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:Prism3afpReplies the max x.- Specified by:
getMaxXin interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the max x.
-
setMaxX
public void setMaxX(double x)
Description copied from interface:Prism3afpSet the max X conserving previous max if needed.- Specified by:
setMaxXin 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:Prism3afpReplies the min y.- Specified by:
getMinYin interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the min y.
-
setMinY
public void setMinY(double y)
Description copied from interface:Prism3afpSet the min Y conserving previous min if needed.- Specified by:
setMinYin 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:Prism3afpReplies the max y.- Specified by:
getMaxYin interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the max y.
-
setMaxY
public void setMaxY(double y)
Description copied from interface:Prism3afpSet the max Y conserving previous max if needed.- Specified by:
setMaxYin 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:Prism3afpReplies the min z.- Specified by:
getMinZin interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the min z.
-
setMinZ
public void setMinZ(double z)
Description copied from interface:Prism3afpSet the min Z conserving previous min if needed.- Specified by:
setMinZin 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:Prism3afpReplies the max z.- Specified by:
getMaxZin interfacePrism3afp<Shape3dfx<?>,RectangularPrism3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the max z.
-
setMaxZ
public void setMaxZ(double z)
Description copied from interface:Prism3afpSet the max Z conserving previous max if needed.- Specified by:
setMaxZin 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:Prism3afpReplies the width.- Specified by:
getWidthin 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:Prism3afpReplies the height.- Specified by:
getHeightin 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:Prism3afpReplies the depth.- Specified by:
getDepthin 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:Shape3dfxReplies the property that contains the bounding box for this shape.- Specified by:
boundingBoxPropertyin interfaceShape3dfx<RectangularPrism3dfx>- Returns:
- the bounding box.
-
-