Class OrientedPoint3dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.Tuple3dfx<Point3dfx>
-
- org.arakhne.afc.math.geometry.d3.dfx.Point3dfx
-
- org.arakhne.afc.math.geometry.d3.dfx.OrientedPoint3dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,OrientedPoint3D<Point3dfx,Vector3dfx>,Point3D<Point3dfx,Vector3dfx>,Tuple3D<Point3dfx>,JsonableObject
public class OrientedPoint3dfx extends Point3dfx implements OrientedPoint3D<Point3dfx,Vector3dfx>
3D oriented point with double precison floating point FX properties.- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Field Summary
Fields Modifier and Type Field Description protected javafx.beans.property.ObjectProperty<Vector3dfx>swayPropertySway vector to the point.
-
Constructor Summary
Constructors Constructor Description OrientedPoint3dfx()Construct an empty oriented point.OrientedPoint3dfx(double x, double y, double z)Construct an oriented point from the three given coordinates.OrientedPoint3dfx(double x, double y, double z, double tanX, double tanY, double tanZ, double norX, double norY, double norZ)Construct an oriented point from the two given coordinates.OrientedPoint3dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)Construct an oriented point from the three given coordinates.OrientedPoint3dfx(Point3dfx point, Vector3dfx tangent, Vector3dfx normal)Constructor by setting from a point and a tangent vector.OrientedPoint3dfx(Tuple3dfx<?> tuple)Constructor by setting.OrientedPoint3dfx(Point3D<?,?> point, Vector3D<?,?> tangent, Vector3D<?,?> normal)Construct an oriented point from a point and a tangent vector.OrientedPoint3dfx(Tuple3D<?> tuple)Constructor by copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrientedPoint3dfxclone()Clone this point.Vector3dfxgetNormal()Replies the normal vector.doublegetNormalX()Replies the X coordinate of the normal vector.doublegetNormalY()Replies the Y coordinate of the normal vector.doublegetNormalZ()Replies the Z coordinate of the normal vector.Vector3dfxgetSway()Replies the sway vector.doublegetSwayX()Replies the X coordinate of the sway vector.doublegetSwayY()Replies the Y coordinate of the sway vector.doublegetSwayZ()Replies the Z coordinate of the sway vector.Vector3dfxgetTangent()Replies the tangent vector .doublegetTangentX()Replies the X coordinate of the tangent vector.doublegetTangentY()Replies the Y coordinate of the tangent vector.doublegetTangentZ()Replies the Z coordinate of the tangent vector.inthashCode()Returns a hash code value based on the data values in this object.intinx()Replies the X coordinate of the normal vector.intiny()Replies the Y coordinate of the normal vector.intinz()Replies the Z coordinate of the normal vector.intisx()Replies the X coordinate of the sway vector.intisy()Replies the Y coordinate of the sway vector.intisz()Replies the Z coordinate of the sway vector.intitx()Replies the X coordinate of the tangent vector.intity()Replies the Y coordinate of the tangent vector.intitz()Replies the Z coordinate of the tangent vector.javafx.beans.property.DoublePropertynorXProperty()Replies the property that is the x coordinate of the normal vector.javafx.beans.property.DoublePropertynorYProperty()Replies the property that is the y coordinate of the normal vector.javafx.beans.property.DoublePropertynorZProperty()Replies the property that is the y coordinate of the normal vector.voidsetNormal(Vector3dfx normal)Sets the given vector as the new normal to this point.voidsetNormalX(double norX)Sets a new value in the X normal of the point.voidsetNormalX(int norX)Sets a new value in the X normal of the point.voidsetNormalY(double norY)Sets a new value in the Y normal of the point.voidsetNormalY(int norY)Sets a new value in the Y normal of the point.voidsetNormalZ(double norZ)Sets a new value in the Z normal of the point.voidsetNormalZ(int norZ)Sets a new value in the Z normal of the point.voidsetTangent(Vector3dfx tangent)Sets the given vector as the new tangent to this point.voidsetTangentX(double tanX)Sets a new value in the X tangent of the point.voidsetTangentX(int tanX)Sets a new value in the X tangent of the point.voidsetTangentY(double tanY)Sets a new value in the Y tangent of the point.voidsetTangentY(int tanY)Sets a new value in the Y tangent of the point.voidsetTangentZ(double tanZ)Sets a new value in the Z tangent of the point.voidsetTangentZ(int tanZ)Sets a new value in the Z tangent of the point.(package private) javafx.beans.property.ReadOnlyDoublePropertyswayXProperty()Replies the property that is the x coordinate of the sway vector.(package private) javafx.beans.property.ReadOnlyDoublePropertyswayYProperty()Replies the property that is the y coordinate of the sway vector.(package private) javafx.beans.property.ReadOnlyDoublePropertyswayZProperty()Replies the property that is the z coordinate of the sway vector.javafx.beans.property.DoublePropertytanXProperty()Replies the property that is the x coordinate of the tangent vector.javafx.beans.property.DoublePropertytanYProperty()Replies the property that is the y coordinate of the tangent vector.javafx.beans.property.DoublePropertytanZProperty()Replies the property that is the y coordinate of the tangent vector.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.dfx.Point3dfx
convert, getGeomFactory, toUnmodifiable
-
Methods inherited from class org.arakhne.afc.math.geometry.d3.dfx.Tuple3dfx
equals, getX, getY, getZ, ix, iy, iz, set, setX, setX, setY, setY, setZ, setZ, toJson, toString, xProperty, yProperty, zProperty
-
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.OrientedPoint3D
equals, getPoint, set, set, set
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Point3D
add, add, add, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getGeomFactory, getIdistanceL1, getIdistanceLinf, operator_add, operator_and, operator_elvis, operator_equals, operator_minus, operator_minus, operator_notEquals, operator_plus, operator_remove, operator_upTo, operator_upTo, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, sub, sub, toUnmodifiable
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Tuple3D
absolute, absolute, add, add, addX, addX, addY, addY, addZ, addZ, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, equals, equals, get, get, get, getX, getY, getZ, interpolate, interpolate, ix, iy, iz, negate, negate, scale, scale, scale, scale, set, set, set, set, set, setX, setX, setY, setY, setZ, setZ, sub, sub, subX, subX, subY, subY, subZ, subZ
-
-
-
-
Field Detail
-
swayProperty
protected javafx.beans.property.ObjectProperty<Vector3dfx> swayProperty
Sway vector to the point.
-
-
Constructor Detail
-
OrientedPoint3dfx
public OrientedPoint3dfx()
Construct an empty oriented point.
-
OrientedPoint3dfx
public OrientedPoint3dfx(Tuple3D<?> tuple)
Constructor by copy.- Parameters:
tuple- the tuple to copy.
-
OrientedPoint3dfx
public OrientedPoint3dfx(Tuple3dfx<?> tuple)
Constructor by setting.- Parameters:
tuple- the tuple to set.
-
OrientedPoint3dfx
public OrientedPoint3dfx(double x, double y, double z)Construct an oriented point from the three given coordinates.- Parameters:
x- x coordinate of the point.y- y coordinate of the point.z- z coordinate of the point.
-
OrientedPoint3dfx
public OrientedPoint3dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)Construct an oriented point from the three given coordinates.- Parameters:
x- x coordinate of the point.y- y coordinate of the point.z- z coordinate of the point.
-
OrientedPoint3dfx
public OrientedPoint3dfx(Point3D<?,?> point, Vector3D<?,?> tangent, Vector3D<?,?> normal)
Construct an oriented point from a point and a tangent vector.- Parameters:
point- the point.tangent- the tangent vector.normal- the normal vector.
-
OrientedPoint3dfx
public OrientedPoint3dfx(Point3dfx point, Vector3dfx tangent, Vector3dfx normal)
Constructor by setting from a point and a tangent vector.- Parameters:
point- the point.tangent- the tangent vector.normal- the normal vector.
-
OrientedPoint3dfx
public OrientedPoint3dfx(double x, double y, double z, double tanX, double tanY, double tanZ, double norX, double norY, double norZ)Construct an oriented point from the two given coordinates.- Parameters:
x- x coordinate of the point.y- y coordinate of the point.z- z coordinate of the point.tanX- x coordinate of the tangent vector.tanY- y coordinate of the tangent vector.tanZ- z coordinate of the tangent vector.norX- x coordinate of the normal vector.norY- y coordinate of the normal vector.norZ- z coordinate of the normal vector.
-
-
Method Detail
-
hashCode
@Pure public int hashCode()
Description copied from interface:Tuple3DReturns a hash code value based on the data values in this object. Two different Tuple2f objects with identical data values (i.e., Tuple2f.equals returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
-
clone
public OrientedPoint3dfx clone()
Description copied from interface:Tuple3DClone this point.
-
getTangentX
public double getTangentX()
Description copied from interface:OrientedPoint3DReplies the X coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
getTangentXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the x coordinate of the tangent vector.
-
itx
public int itx()
Description copied from interface:OrientedPoint3DReplies the X coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
itxin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the x coordinate of the tangent vector.
-
setTangentX
public void setTangentX(int tanX)
Description copied from interface:OrientedPoint3DSets a new value in the X tangent of the point.- Specified by:
setTangentXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tanX- the new value double x.
-
setTangentX
public void setTangentX(double tanX)
Description copied from interface:OrientedPoint3DSets a new value in the X tangent of the point.- Specified by:
setTangentXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tanX- the new value double x.
-
getTangentY
public double getTangentY()
Description copied from interface:OrientedPoint3DReplies the Y coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
getTangentYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the y coordinate of the tangent vector.
-
ity
public int ity()
Description copied from interface:OrientedPoint3DReplies the Y coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
ityin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the y coordinate of the tangent vector.
-
setTangentY
public void setTangentY(int tanY)
Description copied from interface:OrientedPoint3DSets a new value in the Y tangent of the point.- Specified by:
setTangentYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tanY- the new value double y.
-
setTangentY
public void setTangentY(double tanY)
Description copied from interface:OrientedPoint3DSets a new value in the Y tangent of the point.- Specified by:
setTangentYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tanY- the new value double y.
-
getTangentZ
public double getTangentZ()
Description copied from interface:OrientedPoint3DReplies the Z coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
getTangentZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the z coordinate of the tangent vector.
-
itz
public int itz()
Description copied from interface:OrientedPoint3DReplies the Z coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
itzin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the z coordinate of the tangent vector.
-
setTangentZ
public void setTangentZ(int tanZ)
Description copied from interface:OrientedPoint3DSets a new value in the Z tangent of the point.- Specified by:
setTangentZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tanZ- the new value double z.
-
setTangentZ
public void setTangentZ(double tanZ)
Description copied from interface:OrientedPoint3DSets a new value in the Z tangent of the point.- Specified by:
setTangentZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tanZ- the new value double z.
-
tanXProperty
@Pure public javafx.beans.property.DoubleProperty tanXProperty()
Replies the property that is the x coordinate of the tangent vector.- Returns:
- the tangent vector x property.
-
tanYProperty
@Pure public javafx.beans.property.DoubleProperty tanYProperty()
Replies the property that is the y coordinate of the tangent vector.- Returns:
- the tangent vector y property.
-
tanZProperty
@Pure public javafx.beans.property.DoubleProperty tanZProperty()
Replies the property that is the y coordinate of the tangent vector.- Returns:
- the tangent vector y property.
-
getTangent
public Vector3dfx getTangent()
Description copied from interface:OrientedPoint3DReplies the tangent vector .- Specified by:
getTangentin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the tangent vector to this point.
-
setTangent
public void setTangent(Vector3dfx tangent)
Description copied from interface:OrientedPoint3DSets the given vector as the new tangent to this point. The sway vector is automatically recomputed.- Specified by:
setTangentin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
tangent- the vector to set.
-
getNormalX
public double getNormalX()
Description copied from interface:OrientedPoint3DReplies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the x coordinate of the normal vector.
-
inx
public int inx()
Description copied from interface:OrientedPoint3DReplies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inxin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the x coordinate of the normal vector.
-
setNormalX
public void setNormalX(int norX)
Description copied from interface:OrientedPoint3DSets a new value in the X normal of the point.- Specified by:
setNormalXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
norX- the new value double x.
-
setNormalX
public void setNormalX(double norX)
Description copied from interface:OrientedPoint3DSets a new value in the X normal of the point.- Specified by:
setNormalXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
norX- the new value double x.
-
getNormalY
public double getNormalY()
Description copied from interface:OrientedPoint3DReplies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the y coordinate of the normal vector.
-
iny
public int iny()
Description copied from interface:OrientedPoint3DReplies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inyin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the y coordinate of the normal vector.
-
setNormalY
public void setNormalY(int norY)
Description copied from interface:OrientedPoint3DSets a new value in the Y normal of the point.- Specified by:
setNormalYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
norY- the new value double y.
-
setNormalY
public void setNormalY(double norY)
Description copied from interface:OrientedPoint3DSets a new value in the Y normal of the point.- Specified by:
setNormalYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
norY- the new value double y.
-
getNormalZ
public double getNormalZ()
Description copied from interface:OrientedPoint3DReplies the Z coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the z coordinate of the normal vector.
-
inz
public int inz()
Description copied from interface:OrientedPoint3DReplies the Z coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inzin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the z coordinate of the normal vector.
-
setNormalZ
public void setNormalZ(int norZ)
Description copied from interface:OrientedPoint3DSets a new value in the Z normal of the point.- Specified by:
setNormalZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
norZ- the new value double z.
-
setNormalZ
public void setNormalZ(double norZ)
Description copied from interface:OrientedPoint3DSets a new value in the Z normal of the point.- Specified by:
setNormalZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
norZ- the new value double z.
-
norXProperty
@Pure public javafx.beans.property.DoubleProperty norXProperty()
Replies the property that is the x coordinate of the normal vector.- Returns:
- the normal vector x property.
-
norYProperty
@Pure public javafx.beans.property.DoubleProperty norYProperty()
Replies the property that is the y coordinate of the normal vector.- Returns:
- the normal vector y property.
-
norZProperty
@Pure public javafx.beans.property.DoubleProperty norZProperty()
Replies the property that is the y coordinate of the normal vector.- Returns:
- the normal vector y property.
-
getNormal
public Vector3dfx getNormal()
Description copied from interface:OrientedPoint3DReplies the normal vector.- Specified by:
getNormalin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the normal vector to the point.
-
setNormal
public void setNormal(Vector3dfx normal)
Description copied from interface:OrientedPoint3DSets the given vector as the new normal to this point. The sway vector is automatically recomputed.- Specified by:
setNormalin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Parameters:
normal- the vector to set.
-
getSway
public Vector3dfx getSway()
Description copied from interface:OrientedPoint3DReplies the sway vector.- Specified by:
getSwayin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the sway vector to this point.
-
swayXProperty
@Pure javafx.beans.property.ReadOnlyDoubleProperty swayXProperty()
Replies the property that is the x coordinate of the sway vector.- Returns:
- the sway vector x property.
-
swayYProperty
@Pure javafx.beans.property.ReadOnlyDoubleProperty swayYProperty()
Replies the property that is the y coordinate of the sway vector.- Returns:
- the sway vector y property.
-
swayZProperty
@Pure javafx.beans.property.ReadOnlyDoubleProperty swayZProperty()
Replies the property that is the z coordinate of the sway vector.- Returns:
- the sway vector z property.
-
getSwayX
public double getSwayX()
Description copied from interface:OrientedPoint3DReplies the X coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getSwayXin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the x coordinate of the sway vector.
-
isx
public int isx()
Description copied from interface:OrientedPoint3DReplies the X coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
isxin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the x coordinate of the sway vector.
-
getSwayY
public double getSwayY()
Description copied from interface:OrientedPoint3DReplies the Y coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getSwayYin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the y coordinate of the sway vector.
-
isy
public int isy()
Description copied from interface:OrientedPoint3DReplies the Y coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
isyin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the y coordinate of the sway vector.
-
getSwayZ
public double getSwayZ()
Description copied from interface:OrientedPoint3DReplies the Z coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getSwayZin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the z coordinate of the sway vector.
-
isz
public int isz()
Description copied from interface:OrientedPoint3DReplies the Z coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
iszin interfaceOrientedPoint3D<Point3dfx,Vector3dfx>- Returns:
- the z coordinate of the sway vector.
-
-