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.Sphere3ifx
clone()
Clone this shape.int
getRadius()
Replies the radius.int
getX()
Replies the center X.int
getY()
Replies the center y.int
getZ()
Replies the center z.int
hashCode()
javafx.beans.property.IntegerProperty
radiusProperty()
Replies the property that is the radius of the sphere.void
set(int x, int y, int z, int radius)
Change the sphere.void
setRadius(int radius)
Change the radius.void
setX(int x)
Change the center X.void
setY(int y)
Change the center Y.void
setZ(int z)
Change the center Z.javafx.beans.property.IntegerProperty
xProperty()
Replies the property that is the x coordinate of the sphere center.javafx.beans.property.IntegerProperty
yProperty()
Replies the property that is the y coordinate of the sphere center.javafx.beans.property.IntegerProperty
zProperty()
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:Shape3D
Clone this shape.- Specified by:
clone
in interfaceShape3D<Shape3ifx<?>,Sphere3ifx,PathIterator3ai<PathElement3ifx>,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Overrides:
clone
in classAbstractShape3ifx<Sphere3ifx>
- Returns:
- the clone.
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classAbstractShape3ifx<Sphere3ifx>
-
getX
@Pure public int getX()
Description copied from interface:Sphere3ai
Replies the center X.- Specified by:
getX
in 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:Sphere3ai
Replies the center y.- Specified by:
getY
in 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:Sphere3ai
Replies the center z.- Specified by:
getZ
in 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:Sphere3ai
Change the center X.- Specified by:
setX
in interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
x
- the center x.
-
setY
public void setY(int y)
Description copied from interface:Sphere3ai
Change the center Y.- Specified by:
setY
in interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
y
- the center y.
-
setZ
public void setZ(int z)
Description copied from interface:Sphere3ai
Change the center Z.- Specified by:
setZ
in interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Parameters:
z
- the center z.
-
getRadius
@Pure public int getRadius()
Description copied from interface:Sphere3ai
Replies the radius.- Specified by:
getRadius
in interfaceSphere3ai<Shape3ifx<?>,Sphere3ifx,PathElement3ifx,Point3ifx,Vector3ifx,RectangularPrism3ifx>
- Returns:
- the radius.
-
setRadius
public void setRadius(int radius)
Description copied from interface:Sphere3ai
Change the radius.- Specified by:
setRadius
in 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:Sphere3ai
Change the sphere.- Specified by:
set
in 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:Shape3ifx
Replies the property that contains the bounding box for this shape.- Specified by:
boundingBoxProperty
in interfaceShape3ifx<Sphere3ifx>
- Returns:
- the bounding box.
-
-