Class OrientedPoint3ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ifx.Tuple3ifx<Point3ifx>
-
- org.arakhne.afc.math.geometry.d3.ifx.Point3ifx
-
- org.arakhne.afc.math.geometry.d3.ifx.OrientedPoint3ifx
-
- All Implemented Interfaces:
Serializable,Cloneable,OrientedPoint3D<Point3ifx,Vector3ifx>,Point3D<Point3ifx,Vector3ifx>,Tuple3D<Point3ifx>,JsonableObject
public class OrientedPoint3ifx extends Point3ifx implements OrientedPoint3D<Point3ifx,Vector3ifx>
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
-
-
Constructor Summary
Constructors Constructor Description OrientedPoint3ifx()Construct an empty oriented point.OrientedPoint3ifx(int x, int y, int z)Construct an oriented point from the three given coordinates.OrientedPoint3ifx(int x, int y, int z, int tanX, int tanY, int tanZ, int norX, int norY, int norZ)Construct an oriented point from the two given coordinates.OrientedPoint3ifx(javafx.beans.property.IntegerProperty x, javafx.beans.property.IntegerProperty y, javafx.beans.property.IntegerProperty z)Construct an oriented point from the three given coordinates.OrientedPoint3ifx(Point3ifx point, Vector3ifx tangent, Vector3ifx normal)Constructor by setting from a point and a tangent vector.OrientedPoint3ifx(Tuple3ifx<?> tuple)Constructor by setting.OrientedPoint3ifx(Point3D<?,?> point, Vector3D<?,?> tangent, Vector3D<?,?> normal)Construct an oriented point from a point and a tangent vector.OrientedPoint3ifx(Tuple3D<?> tuple)Constructor by copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrientedPoint3ifxclone()Clone this point.Vector3ifxgetNormal()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.Vector3ifxgetSway()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.Vector3ifxgetTangent()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.IntegerPropertynorXProperty()Replies the property that is the x coordinate of the normal vector.javafx.beans.property.IntegerPropertynorYProperty()Replies the property that is the y coordinate of the normal vector.javafx.beans.property.IntegerPropertynorZProperty()Replies the property that is the y coordinate of the normal vector.voidsetNormal(Vector3ifx 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(Vector3ifx 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.ReadOnlyIntegerPropertyswayXProperty()Replies the property that is the x coordinate of the sway vector.(package private) javafx.beans.property.ReadOnlyIntegerPropertyswayYProperty()Replies the property that is the y coordinate of the sway vector.(package private) javafx.beans.property.ReadOnlyIntegerPropertyswayZProperty()Replies the property that is the z coordinate of the sway vector.javafx.beans.property.IntegerPropertytanXProperty()Replies the property that is the x coordinate of the tangent vector.javafx.beans.property.IntegerPropertytanYProperty()Replies the property that is the y coordinate of the tangent vector.javafx.beans.property.IntegerPropertytanZProperty()Replies the property that is the y coordinate of the tangent vector.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.ifx.Point3ifx
convert, getGeomFactory, toUnmodifiable
-
Methods inherited from class org.arakhne.afc.math.geometry.d3.ifx.Tuple3ifx
equals, getX, getY, getZ, ix, iy, iz, 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
-
tangent
protected Vector3ifx tangent
Tangent vector to this point.
-
-
Constructor Detail
-
OrientedPoint3ifx
public OrientedPoint3ifx()
Construct an empty oriented point.
-
OrientedPoint3ifx
public OrientedPoint3ifx(Tuple3D<?> tuple)
Constructor by copy.- Parameters:
tuple- the tuple to copy.
-
OrientedPoint3ifx
public OrientedPoint3ifx(Tuple3ifx<?> tuple)
Constructor by setting.- Parameters:
tuple- the tuple to set.
-
OrientedPoint3ifx
public OrientedPoint3ifx(int x, int y, int 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.
-
OrientedPoint3ifx
public OrientedPoint3ifx(javafx.beans.property.IntegerProperty x, javafx.beans.property.IntegerProperty y, javafx.beans.property.IntegerProperty 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.
-
OrientedPoint3ifx
public OrientedPoint3ifx(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.
-
OrientedPoint3ifx
public OrientedPoint3ifx(Point3ifx point, Vector3ifx tangent, Vector3ifx normal)
Constructor by setting from a point and a tangent vector.- Parameters:
point- the point.tangent- the tangent vector.normal- the normal vector.
-
OrientedPoint3ifx
public OrientedPoint3ifx(int x, int y, int z, int tanX, int tanY, int tanZ, int norX, int norY, int 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 OrientedPoint3ifx 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- Parameters:
tanZ- the new value double z.
-
tanXProperty
@Pure public javafx.beans.property.IntegerProperty 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.IntegerProperty 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.IntegerProperty tanZProperty()
Replies the property that is the y coordinate of the tangent vector.- Returns:
- the tangent vector y property.
-
getTangent
public Vector3ifx getTangent()
Description copied from interface:OrientedPoint3DReplies the tangent vector .- Specified by:
getTangentin interfaceOrientedPoint3D<Point3ifx,Vector3ifx>- Returns:
- the tangent vector to this point.
-
setTangent
public void setTangent(Vector3ifx 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- Parameters:
norZ- the new value double z.
-
norXProperty
@Pure public javafx.beans.property.IntegerProperty 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.IntegerProperty 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.IntegerProperty norZProperty()
Replies the property that is the y coordinate of the normal vector.- Returns:
- the normal vector y property.
-
getNormal
public Vector3ifx getNormal()
Description copied from interface:OrientedPoint3DReplies the normal vector.- Specified by:
getNormalin interfaceOrientedPoint3D<Point3ifx,Vector3ifx>- Returns:
- the normal vector to the point.
-
setNormal
public void setNormal(Vector3ifx 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<Point3ifx,Vector3ifx>- Parameters:
normal- the vector to set.
-
getSway
public Vector3ifx getSway()
Description copied from interface:OrientedPoint3DReplies the sway vector.- Specified by:
getSwayin interfaceOrientedPoint3D<Point3ifx,Vector3ifx>- Returns:
- the sway vector to this point.
-
swayXProperty
@Pure javafx.beans.property.ReadOnlyIntegerProperty swayXProperty()
Replies the property that is the x coordinate of the sway vector.- Returns:
- the sway vector x property.
-
swayYProperty
@Pure javafx.beans.property.ReadOnlyIntegerProperty swayYProperty()
Replies the property that is the y coordinate of the sway vector.- Returns:
- the sway vector y property.
-
swayZProperty
@Pure javafx.beans.property.ReadOnlyIntegerProperty 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- 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<Point3ifx,Vector3ifx>- Returns:
- the z coordinate of the sway vector.
-
-