Class Sphere3ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ifx.AbstractShape3ifx<Sphere3ifx>
-
- org.arakhne.afc.math.geometry.d3.ifx.Sphere3ifx
-
- All Implemented Interfaces:
Serializable,Cloneable,Shape3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>,Sphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>,Shape3ifx<Sphere3ifx>,Shape3D<Shape3ifx<?>,Sphere3ifx,PathIterator3ai<PathElement3ifx>,Point3ifx,Vector3ifx,RectangularPrism3ifx>,JsonableObject
public class Sphere3ifx extends AbstractShape3ifx<Sphere3ifx> implements Sphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
A sphere 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.Sphere3ai
Sphere3ai.AbstractCirclePathIterator<IE extends PathElement3ai>, Sphere3ai.SpherePathIterator<IE extends PathElement3ai>, Sphere3ai.SpherePerimeterIterator<P extends Point3D<? super P,? super V>,V extends Vector3D<? super V,? super P>>, Sphere3ai.TransformedCirclePathIterator<IE extends PathElement3ai>
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d3.ifx.AbstractShape3ifx
boundingBox
-
-
Constructor Summary
Constructors Constructor Description Sphere3ifx()Construct an empty sphere.Sphere3ifx(int x, int y, int z, int radius)Construct a sphere at the given position and with the given radius.Sphere3ifx(Sphere3ai<?,?,?,?,?,?> sphere)Constructor by copy.Sphere3ifx(Point3ifx center, int radius)Construct a sphere by setting the given position and radius.Sphere3ifx(Sphere3ifx sphere)Construct by setting.Sphere3ifx(Point3D<?,?> center, int radius)Construct a sphere at the given position and with the given radius.
-
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.Sphere3ifxclone()Clone this shape.intgetRadius()Replies the radius.intgetX()Replies the center X.intgetY()Replies the center y.intgetZ()Replies the center z.inthashCode()javafx.beans.property.IntegerPropertyradiusProperty()Replies the property that is the radius of the sphere.voidset(int x, int y, int z, int radius)Change the sphere.voidsetRadius(int radius)Change the radius.voidsetX(int x)Change the center X.voidsetY(int y)Change the center Y.voidsetZ(int z)Change the center Z.javafx.beans.property.IntegerPropertyxProperty()Replies the property that is the x coordinate of the sphere center.javafx.beans.property.IntegerPropertyyProperty()Replies the property that is the y coordinate of the sphere center.javafx.beans.property.IntegerPropertyzProperty()Replies the property that is the z coordinate of the sphere center.-
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.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
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.ai.Sphere3ai
clear, contains, contains, equalsToShape, getCenter, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getPathIterator, getPointIterator, getPointIterator, intersects, intersects, intersects, intersects, intersects, isEmpty, set, set, setCenter, setCenter, toBoundingBox, translate
-
-
-
-
Constructor Detail
-
Sphere3ifx
public Sphere3ifx()
Construct an empty sphere.
-
Sphere3ifx
public Sphere3ifx(Point3D<?,?> center, int radius)
Construct a sphere at the given position and with the given radius.- Parameters:
center- the center of the sphere.radius- the radius of the sphere.
-
Sphere3ifx
public Sphere3ifx(Point3ifx center, int radius)
Construct a sphere by setting the given position and radius.- Parameters:
center- the center of the sphere.radius- the radius of the sphere.
-
Sphere3ifx
public Sphere3ifx(int x, int y, int z, int radius)Construct a sphere at the given position and with the given 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 sphere.
-
Sphere3ifx
public Sphere3ifx(Sphere3ai<?,?,?,?,?,?> sphere)
Constructor by copy.- Parameters:
sphere- the sphere to copy.
-
Sphere3ifx
public Sphere3ifx(Sphere3ifx sphere)
Construct by setting.- Parameters:
sphere- the sphere to set.
-
-
Method Detail
-
clone
public Sphere3ifx clone()
Description copied from interface:Shape3DClone this shape.- Specified by:
clonein interfaceShape3D<Shape3ifx<?>,Sphere3ifx,PathIterator3ai<PathElement3ifx>,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Overrides:
clonein classAbstractShape3ifx<Sphere3ifx>- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classAbstractShape3ifx<Sphere3ifx>
-
getX
@Pure public int getX()
Description copied from interface:Sphere3aiReplies the center X.- Specified by:
getXin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Returns:
- the center x.
-
xProperty
@Pure public javafx.beans.property.IntegerProperty xProperty()
Replies the property that is the x coordinate of the sphere center.- Returns:
- the x property.
-
getY
@Pure public int getY()
Description copied from interface:Sphere3aiReplies the center y.- Specified by:
getYin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Returns:
- the center y.
-
yProperty
@Pure public javafx.beans.property.IntegerProperty yProperty()
Replies the property that is the y coordinate of the sphere center.- Returns:
- the y property.
-
getZ
@Pure public int getZ()
Description copied from interface:Sphere3aiReplies the center z.- Specified by:
getZin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Returns:
- the center z.
-
zProperty
@Pure public javafx.beans.property.IntegerProperty zProperty()
Replies the property that is the z coordinate of the sphere center.- Returns:
- the z property.
-
setX
public void setX(int x)
Description copied from interface:Sphere3aiChange the center X.- Specified by:
setXin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Parameters:
x- the center x.
-
setY
public void setY(int y)
Description copied from interface:Sphere3aiChange the center Y.- Specified by:
setYin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Parameters:
y- the center y.
-
setZ
public void setZ(int z)
Description copied from interface:Sphere3aiChange the center Z.- Specified by:
setZin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Parameters:
z- the center z.
-
getRadius
@Pure public int getRadius()
Description copied from interface:Sphere3aiReplies the radius.- Specified by:
getRadiusin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Returns:
- the radius.
-
setRadius
public void setRadius(int radius)
Description copied from interface:Sphere3aiChange the radius.- Specified by:
setRadiusin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Parameters:
radius- the radius.
-
radiusProperty
@Pure public javafx.beans.property.IntegerProperty radiusProperty()
Replies the property that is the radius of the sphere.- Returns:
- the radius property.
-
set
public void set(int x, int y, int z, int radius)Description copied from interface:Sphere3aiChange the sphere.- Specified by:
setin interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>- Parameters:
x- the x coordinate of the center.y- the y coordinate of the center.z- the z coordinate of the center.radius- the radius of the center.
-
boundingBoxProperty
public javafx.beans.property.ObjectProperty<RectangularPrism3ifx> boundingBoxProperty()
Description copied from interface:Shape3ifxReplies the property that contains the bounding box for this shape.- Specified by:
boundingBoxPropertyin interfaceShape3ifx<Sphere3ifx>- Returns:
- the bounding box.
-
-