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 OrientedPoint3ifx
clone()
Clone this point.Vector3ifx
getNormal()
Replies the normal vector.double
getNormalX()
Replies the X coordinate of the normal vector.double
getNormalY()
Replies the Y coordinate of the normal vector.double
getNormalZ()
Replies the Z coordinate of the normal vector.Vector3ifx
getSway()
Replies the sway vector.double
getSwayX()
Replies the X coordinate of the sway vector.double
getSwayY()
Replies the Y coordinate of the sway vector.double
getSwayZ()
Replies the Z coordinate of the sway vector.Vector3ifx
getTangent()
Replies the tangent vector .double
getTangentX()
Replies the X coordinate of the tangent vector.double
getTangentY()
Replies the Y coordinate of the tangent vector.double
getTangentZ()
Replies the Z coordinate of the tangent vector.int
hashCode()
Returns a hash code value based on the data values in this object.int
inx()
Replies the X coordinate of the normal vector.int
iny()
Replies the Y coordinate of the normal vector.int
inz()
Replies the Z coordinate of the normal vector.int
isx()
Replies the X coordinate of the sway vector.int
isy()
Replies the Y coordinate of the sway vector.int
isz()
Replies the Z coordinate of the sway vector.int
itx()
Replies the X coordinate of the tangent vector.int
ity()
Replies the Y coordinate of the tangent vector.int
itz()
Replies the Z coordinate of the tangent vector.javafx.beans.property.IntegerProperty
norXProperty()
Replies the property that is the x coordinate of the normal vector.javafx.beans.property.IntegerProperty
norYProperty()
Replies the property that is the y coordinate of the normal vector.javafx.beans.property.IntegerProperty
norZProperty()
Replies the property that is the y coordinate of the normal vector.void
setNormal(Vector3ifx normal)
Sets the given vector as the new normal to this point.void
setNormalX(double norX)
Sets a new value in the X normal of the point.void
setNormalX(int norX)
Sets a new value in the X normal of the point.void
setNormalY(double norY)
Sets a new value in the Y normal of the point.void
setNormalY(int norY)
Sets a new value in the Y normal of the point.void
setNormalZ(double norZ)
Sets a new value in the Z normal of the point.void
setNormalZ(int norZ)
Sets a new value in the Z normal of the point.void
setTangent(Vector3ifx tangent)
Sets the given vector as the new tangent to this point.void
setTangentX(double tanX)
Sets a new value in the X tangent of the point.void
setTangentX(int tanX)
Sets a new value in the X tangent of the point.void
setTangentY(double tanY)
Sets a new value in the Y tangent of the point.void
setTangentY(int tanY)
Sets a new value in the Y tangent of the point.void
setTangentZ(double tanZ)
Sets a new value in the Z tangent of the point.void
setTangentZ(int tanZ)
Sets a new value in the Z tangent of the point.(package private) javafx.beans.property.ReadOnlyIntegerProperty
swayXProperty()
Replies the property that is the x coordinate of the sway vector.(package private) javafx.beans.property.ReadOnlyIntegerProperty
swayYProperty()
Replies the property that is the y coordinate of the sway vector.(package private) javafx.beans.property.ReadOnlyIntegerProperty
swayZProperty()
Replies the property that is the z coordinate of the sway vector.javafx.beans.property.IntegerProperty
tanXProperty()
Replies the property that is the x coordinate of the tangent vector.javafx.beans.property.IntegerProperty
tanYProperty()
Replies the property that is the y coordinate of the tangent vector.javafx.beans.property.IntegerProperty
tanZProperty()
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:Tuple3D
Returns 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:Tuple3D
Clone this point.
-
getTangentX
public double getTangentX()
Description copied from interface:OrientedPoint3D
Replies the X coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
getTangentX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the x coordinate of the tangent vector.
-
itx
public int itx()
Description copied from interface:OrientedPoint3D
Replies the X coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
itx
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the x coordinate of the tangent vector.
-
setTangentX
public void setTangentX(int tanX)
Description copied from interface:OrientedPoint3D
Sets a new value in the X tangent of the point.- Specified by:
setTangentX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
tanX
- the new value double x.
-
setTangentX
public void setTangentX(double tanX)
Description copied from interface:OrientedPoint3D
Sets a new value in the X tangent of the point.- Specified by:
setTangentX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
tanX
- the new value double x.
-
getTangentY
public double getTangentY()
Description copied from interface:OrientedPoint3D
Replies the Y coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
getTangentY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the y coordinate of the tangent vector.
-
ity
public int ity()
Description copied from interface:OrientedPoint3D
Replies the Y coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
ity
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the y coordinate of the tangent vector.
-
setTangentY
public void setTangentY(int tanY)
Description copied from interface:OrientedPoint3D
Sets a new value in the Y tangent of the point.- Specified by:
setTangentY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
tanY
- the new value double y.
-
setTangentY
public void setTangentY(double tanY)
Description copied from interface:OrientedPoint3D
Sets a new value in the Y tangent of the point.- Specified by:
setTangentY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
tanY
- the new value double y.
-
getTangentZ
public double getTangentZ()
Description copied from interface:OrientedPoint3D
Replies the Z coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
getTangentZ
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the z coordinate of the tangent vector.
-
itz
public int itz()
Description copied from interface:OrientedPoint3D
Replies the Z coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.- Specified by:
itz
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the z coordinate of the tangent vector.
-
setTangentZ
public void setTangentZ(int tanZ)
Description copied from interface:OrientedPoint3D
Sets a new value in the Z tangent of the point.- Specified by:
setTangentZ
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
tanZ
- the new value double z.
-
setTangentZ
public void setTangentZ(double tanZ)
Description copied from interface:OrientedPoint3D
Sets a new value in the Z tangent of the point.- Specified by:
setTangentZ
in 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:OrientedPoint3D
Replies the tangent vector .- Specified by:
getTangent
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the tangent vector to this point.
-
setTangent
public void setTangent(Vector3ifx tangent)
Description copied from interface:OrientedPoint3D
Sets the given vector as the new tangent to this point. The sway vector is automatically recomputed.- Specified by:
setTangent
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
tangent
- the vector to set.
-
getNormalX
public double getNormalX()
Description copied from interface:OrientedPoint3D
Replies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the x coordinate of the normal vector.
-
inx
public int inx()
Description copied from interface:OrientedPoint3D
Replies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inx
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the x coordinate of the normal vector.
-
setNormalX
public void setNormalX(int norX)
Description copied from interface:OrientedPoint3D
Sets a new value in the X normal of the point.- Specified by:
setNormalX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
norX
- the new value double x.
-
setNormalX
public void setNormalX(double norX)
Description copied from interface:OrientedPoint3D
Sets a new value in the X normal of the point.- Specified by:
setNormalX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
norX
- the new value double x.
-
getNormalY
public double getNormalY()
Description copied from interface:OrientedPoint3D
Replies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the y coordinate of the normal vector.
-
iny
public int iny()
Description copied from interface:OrientedPoint3D
Replies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
iny
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the y coordinate of the normal vector.
-
setNormalY
public void setNormalY(int norY)
Description copied from interface:OrientedPoint3D
Sets a new value in the Y normal of the point.- Specified by:
setNormalY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
norY
- the new value double y.
-
setNormalY
public void setNormalY(double norY)
Description copied from interface:OrientedPoint3D
Sets a new value in the Y normal of the point.- Specified by:
setNormalY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
norY
- the new value double y.
-
getNormalZ
public double getNormalZ()
Description copied from interface:OrientedPoint3D
Replies the Z coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalZ
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the z coordinate of the normal vector.
-
inz
public int inz()
Description copied from interface:OrientedPoint3D
Replies the Z coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inz
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the z coordinate of the normal vector.
-
setNormalZ
public void setNormalZ(int norZ)
Description copied from interface:OrientedPoint3D
Sets a new value in the Z normal of the point.- Specified by:
setNormalZ
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
norZ
- the new value double z.
-
setNormalZ
public void setNormalZ(double norZ)
Description copied from interface:OrientedPoint3D
Sets a new value in the Z normal of the point.- Specified by:
setNormalZ
in 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:OrientedPoint3D
Replies the normal vector.- Specified by:
getNormal
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the normal vector to the point.
-
setNormal
public void setNormal(Vector3ifx normal)
Description copied from interface:OrientedPoint3D
Sets the given vector as the new normal to this point. The sway vector is automatically recomputed.- Specified by:
setNormal
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Parameters:
normal
- the vector to set.
-
getSway
public Vector3ifx getSway()
Description copied from interface:OrientedPoint3D
Replies the sway vector.- Specified by:
getSway
in 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:OrientedPoint3D
Replies the X coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getSwayX
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the x coordinate of the sway vector.
-
isx
public int isx()
Description copied from interface:OrientedPoint3D
Replies the X coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
isx
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the x coordinate of the sway vector.
-
getSwayY
public double getSwayY()
Description copied from interface:OrientedPoint3D
Replies the Y coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getSwayY
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the y coordinate of the sway vector.
-
isy
public int isy()
Description copied from interface:OrientedPoint3D
Replies the Y coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
isy
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the y coordinate of the sway vector.
-
getSwayZ
public double getSwayZ()
Description copied from interface:OrientedPoint3D
Replies the Z coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getSwayZ
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the z coordinate of the sway vector.
-
isz
public int isz()
Description copied from interface:OrientedPoint3D
Replies the Z coordinate of the sway vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
isz
in interfaceOrientedPoint3D<Point3ifx,Vector3ifx>
- Returns:
- the z coordinate of the sway vector.
-
-