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.Sphere3dfx
clone()
Clone this shape.Point3dfx
getCenter()
Replies the center.double
getRadius()
Replies the radius.double
getX()
Replies the center X.double
getY()
Replies the center y.double
getZ()
Replies the center z.int
hashCode()
javafx.beans.property.DoubleProperty
radiusProperty()
Replies the property that is the radius of the circle.void
set(double x, double y, double z, double radius)
Change the frame of the sphere.void
setRadius(double radius)
Set the radius.void
setX(double x)
Change the x coordinate of the center.void
setY(double y)
Change the y coordinate of the center.void
setZ(double z)
Change the z coordinate of the center.javafx.beans.property.DoubleProperty
xProperty()
Replies the property that is the x coordinate of the circle center.javafx.beans.property.DoubleProperty
yProperty()
Replies the property that is the y coordinate of the circle center.javafx.beans.property.DoubleProperty
zProperty()
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:Shape3D
Clone this shape.- Specified by:
clone
in interfaceShape3D<Shape3dfx<?>,Sphere3dfx,PathIterator3afp<PathElement3dfx>,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Overrides:
clone
in classAbstractShape3dfx<Sphere3dfx>
- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape3dfx<Sphere3dfx>
-
getX
@Pure public double getX()
Description copied from interface:Sphere3afp
Replies the center X.- Specified by:
getX
in interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the center x.
-
getY
@Pure public double getY()
Description copied from interface:Sphere3afp
Replies the center y.- Specified by:
getY
in interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the center y.
-
getZ
@Pure public double getZ()
Description copied from interface:Sphere3afp
Replies the center z.- Specified by:
getZ
in interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the center z.
-
getCenter
@Pure public Point3dfx getCenter()
Description copied from interface:Sphere3afp
Replies the center.- Specified by:
getCenter
in interfacePrism3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Specified by:
getCenter
in interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- a copy of the center.
-
setX
public void setX(double x)
Description copied from interface:Sphere3afp
Change the x coordinate of the center.- Specified by:
setX
in 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:Sphere3afp
Change the y coordinate of the center.- Specified by:
setY
in 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:Sphere3afp
Change the z coordinate of the center.- Specified by:
setZ
in 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:Sphere3afp
Replies the radius.- Specified by:
getRadius
in interfaceSphere3afp<Shape3dfx<?>,Sphere3dfx,PathElement3dfx,Point3dfx,Vector3dfx,RectangularPrism3dfx>
- Returns:
- the radius.
-
setRadius
public void setRadius(double radius)
Description copied from interface:Sphere3afp
Set the radius.- Specified by:
setRadius
in 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:Sphere3afp
Change the frame of the sphere.- Specified by:
set
in 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:Shape3dfx
Replies the property that contains the bounding box for this shape.- Specified by:
boundingBoxProperty
in interfaceShape3dfx<Sphere3dfx>
- Returns:
- the bounding box.
-
-