Class Sphere3dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.AbstractShape3dfx<Sphere3dfx>
-
- org.arakhne.afc.math.geometry.d3.dfx.Sphere3dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,Prism3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>,Shape3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>,Sphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>,Shape3dfx<Sphere3dfx>,Shape3D<Shape3dfx<?>,Sphere3dfx,PathIterator3afp<PathElement3dfx>,Point3dfx,Vector3dfx,RectangularPrism3dfx>,JsonableObject
public class Sphere3dfx extends AbstractShape3dfx<Sphere3dfx> implements Sphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
Sphere with 3 double precision floating-point FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, 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.Sphere3afp
Sphere3afp.AbstractSpherePathIterator<T extends PathElement3afp>, Sphere3afp.SpherePathIterator<T extends PathElement3afp>, Sphere3afp.TransformedCirclePathIterator<T extends PathElement3afp>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d3.dfx.AbstractShape3dfx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description Sphere3dfx()Construct an empty sphere.Sphere3dfx(double x, double y, double z, double radius)Construct a sphere with the given position and radius.Sphere3dfx(Sphere3afp<?,?,?,?,?,?> sphere)Constructor by copy.Sphere3dfx(Point3dfx center, double radius)Construct a sphere by setting the given position and radius.Sphere3dfx(Sphere3dfx sphere)Constructor by setting.Sphere3dfx(Point3D<?,?> center, double radius)Construct a sphere with the given position and radius.
-
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.Sphere3dfxclone()Clone this shape.Point3dfxgetCenter()Replies the center.doublegetRadius()Replies the radius.doublegetX()Replies the center X.doublegetY()Replies the center y.doublegetZ()Replies the center z.inthashCode()javafx.beans.property.DoublePropertyradiusProperty()Replies the property that is the radius of the circle.voidset(double x, double y, double z, double radius)Change the frame of the sphere.voidsetRadius(double radius)Set the radius.voidsetX(double x)Change the x coordinate of the center.voidsetY(double y)Change the y coordinate of the center.voidsetZ(double z)Change the z coordinate of the center.javafx.beans.property.DoublePropertyxProperty()Replies the property that is the x coordinate of the circle center.javafx.beans.property.DoublePropertyyProperty()Replies the property that is the y coordinate of the circle center.javafx.beans.property.DoublePropertyzProperty()Replies the property that is the z coordinate of the circle center.-
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
getCenterX, getCenterY, getCenterZ, inflate, set, set, setCenterX, setCenterY, setCenterZ, setDepth, setFromCenter, setFromCorners, setHeight, setWidth
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.afp.Shape3afp
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, getPathIterator, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.afp.Sphere3afp
clear, contains, contains, equalsToShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDepth, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getHeight, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPathIterator, getWidth, intersects, intersects, intersects, intersects, intersects, isEmpty, set, set, setCenter, setCenter, setFromCenter, setFromCorners, setMaxX, setMaxY, setMaxZ, setMinX, setMinY, setMinZ, toBoundingBox, translate
-
-
-
-
Constructor Detail
-
Sphere3dfx
public Sphere3dfx()
Construct an empty sphere.
-
Sphere3dfx
public Sphere3dfx(Point3D<?,?> center, double radius)
Construct a sphere with the given position and radius.- Parameters:
center- the center of the sphere.radius- the radius of the sphere.
-
Sphere3dfx
public Sphere3dfx(Point3dfx center, double radius)
Construct a sphere by setting the given position and radius.- Parameters:
center- the center of the sphere.radius- the radius of the sphere.
-
Sphere3dfx
public Sphere3dfx(double x, double y, double z, double radius)Construct a sphere with the given position and radius.- Parameters:
x- x coordinate of the center of the sphere.y- y coordinate of the center of the sphere.z- z coordinate of the center of the sphere.radius- the radius of the circle.
-
Sphere3dfx
public Sphere3dfx(Sphere3afp<?,?,?,?,?,?> sphere)
Constructor by copy.- Parameters:
sphere- the sphere to copy.
-
Sphere3dfx
public Sphere3dfx(Sphere3dfx sphere)
Constructor by setting.- Parameters:
sphere- the sphere to set.
-
-
Method Detail
-
clone
@Pure public Sphere3dfx clone()
Description copied from interface:Shape3DClone this shape.- Specified by:
clonein interfaceShape3D<Shape3dfx<?>,Sphere3dfx,PathIterator3afp<PathElement3dfx>,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Overrides:
clonein classAbstractShape3dfx<Sphere3dfx>- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classAbstractShape3dfx<Sphere3dfx>
-
getX
@Pure public double getX()
Description copied from interface:Sphere3afpReplies the center X.- Specified by:
getXin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the center x.
-
getY
@Pure public double getY()
Description copied from interface:Sphere3afpReplies the center y.- Specified by:
getYin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the center y.
-
getZ
@Pure public double getZ()
Description copied from interface:Sphere3afpReplies the center z.- Specified by:
getZin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the center z.
-
getCenter
@Pure public Point3dfx getCenter()
Description copied from interface:Sphere3afpReplies the center.- Specified by:
getCenterin interfacePrism3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Specified by:
getCenterin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- a copy of the center.
-
setX
public void setX(double x)
Description copied from interface:Sphere3afpChange the x coordinate of the center.- Specified by:
setXin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Parameters:
x- x coordinate of the center point.
-
setY
public void setY(double y)
Description copied from interface:Sphere3afpChange the y coordinate of the center.- Specified by:
setYin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Parameters:
y- y coordinate of the center point.
-
setZ
public void setZ(double z)
Description copied from interface:Sphere3afpChange the z coordinate of the center.- Specified by:
setZin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Parameters:
z- z coordinate of the center point.
-
xProperty
@Pure public javafx.beans.property.DoubleProperty xProperty()
Replies the property that is the x coordinate of the circle center.- Returns:
- the x property.
-
yProperty
@Pure public javafx.beans.property.DoubleProperty yProperty()
Replies the property that is the y coordinate of the circle center.- Returns:
- the y property.
-
zProperty
@Pure public javafx.beans.property.DoubleProperty zProperty()
Replies the property that is the z coordinate of the circle center.- Returns:
- the z property.
-
getRadius
@Pure public double getRadius()
Description copied from interface:Sphere3afpReplies the radius.- Specified by:
getRadiusin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Returns:
- the radius.
-
setRadius
public void setRadius(double radius)
Description copied from interface:Sphere3afpSet the radius.- Specified by:
setRadiusin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Parameters:
radius- is the radius.
-
radiusProperty
@Pure public javafx.beans.property.DoubleProperty radiusProperty()
Replies the property that is the radius of the circle.- Returns:
- the radius property.
-
set
public void set(double x, double y, double z, double radius)Description copied from interface:Sphere3afpChange the frame of the sphere.- Specified by:
setin interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>- Parameters:
x- x coordinate of the center point.y- y coordinate of the center point.z- z coordinate of the center point.radius- the radius.
-
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<Sphere3dfx>- Returns:
- the bounding box.
-
-