Class OrientedPoint3i
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.i.Tuple3i<Point3i>
-
- org.arakhne.afc.math.geometry.d3.i.Point3i
-
- org.arakhne.afc.math.geometry.d3.i.OrientedPoint3i
-
- All Implemented Interfaces:
Serializable
,Cloneable
,OrientedPoint3D<Point3i,Vector3i>
,Point3D<Point3i,Vector3i>
,Tuple3D<Point3i>
,JsonableObject
public class OrientedPoint3i extends Point3i implements OrientedPoint3D<Point3i,Vector3i>
2D oriented point with double precision floating-point numbers.- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description OrientedPoint3i()
Construct an empty oriented point.OrientedPoint3i(int x, int y, int z)
Construct an oriented point from the two given coordinates.OrientedPoint3i(int x, int y, int z, int tanX, int tanY, int tanZ)
Construct an oriented point from the given coordinates.OrientedPoint3i(int x, int y, int z, int tanX, int tanY, int tanZ, int norX, int norY, double norZ)
Construct an oriented point from the given coordinates.OrientedPoint3i(Point3D<?,?> point, Vector3D<?,?> vector)
Construct an oriented point from a point and a tangent vector.OrientedPoint3i(Tuple3D<?> tuple)
Constructor by copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3i
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.Vector3i
getSway()
Replies the sway vector.Vector3i
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
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.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
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.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.i.Point3i
add, add, add, convert, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getGeomFactory, getIdistanceL1, getIdistanceLinf, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, sub, sub, toUnmodifiable
-
Methods inherited from class org.arakhne.afc.math.geometry.d3.i.Tuple3i
absolute, absolute, add, add, addX, addX, addY, addY, addZ, addZ, clone, equals, getX, getY, getZ, 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, 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.OrientedPoint3D
equals, getPoint, getSwayX, getSwayY, getSwayZ, isx, isy, isz, set, set, set, setNormal, setTangent
-
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, clone, 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
-
-
-
-
Constructor Detail
-
OrientedPoint3i
public OrientedPoint3i()
Construct an empty oriented point.
-
OrientedPoint3i
public OrientedPoint3i(Tuple3D<?> tuple)
Constructor by copy.- Parameters:
tuple
- the tuple to copy.
-
OrientedPoint3i
public OrientedPoint3i(int x, int y, int z)
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.
-
OrientedPoint3i
public OrientedPoint3i(Point3D<?,?> point, Vector3D<?,?> vector)
Construct an oriented point from a point and a tangent vector.- Parameters:
point
- the point.vector
- the tangent vector.
-
OrientedPoint3i
public OrientedPoint3i(int x, int y, int z, int tanX, int tanY, int tanZ)
Construct an oriented point from the 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 vector.tanY
- y coordinate of the vector.tanZ
- z coordinate of the vector.
-
OrientedPoint3i
public OrientedPoint3i(int x, int y, int z, int tanX, int tanY, int tanZ, int norX, int norY, double norZ) throws Exception
Construct an oriented point from the 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 vector.tanY
- y coordinate of the vector.tanZ
- z coordinate of the vector.norX
- x coordinate of the normal vector.norY
- y coordinate of the normal vector.norZ
- z coordinate of the normal vector.- Throws:
Exception
- this exception is thrown when the given vectors are not orthogonal.
-
-
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.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Parameters:
tanX
- the new value double x.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Parameters:
tanY
- the new value double y.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Parameters:
tanZ
- the new value double z.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Returns:
- the x coordinate of the tangent vector.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Returns:
- the y coordinate of the tangent vector.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Returns:
- the z coordinate of the tangent vector.
-
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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- 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<Point3i,Vector3i>
- Parameters:
norZ
- the new value double z.
-
getTangent
public Vector3i getTangent()
Description copied from interface:OrientedPoint3D
Replies the tangent vector .- Specified by:
getTangent
in interfaceOrientedPoint3D<Point3i,Vector3i>
- Returns:
- the tangent vector to this point.
-
getNormal
public Vector3i getNormal()
Description copied from interface:OrientedPoint3D
Replies the normal vector.- Specified by:
getNormal
in interfaceOrientedPoint3D<Point3i,Vector3i>
- Returns:
- the normal vector to the point.
-
getSway
public Vector3i getSway()
Description copied from interface:OrientedPoint3D
Replies the sway vector.- Specified by:
getSway
in interfaceOrientedPoint3D<Point3i,Vector3i>
- Returns:
- the sway vector to this point.
-
-