Package georegression.struct.point
Class Point3D_I32
- All Implemented Interfaces:
Serializable
Point in 3D with integer values.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Generic copy routine.Creates a new tuple instance of the same type.booleanintThe dimensionality of space the tuple is contained in and the number of values it has.intgetIdx(int index) Returns the value of the tuple along the specified coordinate system axis.inthashCode()booleanvoidsetIdx(int index, int value) voidsetTo(int x, int y, int z) setTo(Point3D_I32 p) Sets this equal to 'src'toString()voidzero()Sets all coefficients and parameters to zero, which is typically the initial state.Methods inherited from class georegression.struct.GeoTuple_I32
isIdentical
-
Field Details
-
x
public int x -
y
public int y -
z
public int z
-
-
Constructor Details
-
Point3D_I32
-
Point3D_I32
public Point3D_I32(int x, int y, int z) -
Point3D_I32
public Point3D_I32()
-
-
Method Details
-
copy
Description copied from class:GeoTupleGeneric copy routine. It is recommended that this be overridden with a faster implementation.- Overrides:
copyin classGeoTuple<Point3D_I32>- Returns:
- An exact copy of this GeoTuple.
-
getIdx
public int getIdx(int index) Description copied from class:GeoTuple_I32Returns the value of the tuple along the specified coordinate system axis.- Specified by:
getIdxin classGeoTuple_I32<Point3D_I32>- Parameters:
index- Which axis in the coordinate system.- Returns:
- Its value.
-
setIdx
public void setIdx(int index, int value) - Specified by:
setIdxin classGeoTuple_I32<Point3D_I32>
-
setTo
public void setTo(int x, int y, int z) -
setTo
Description copied from class:GeoTupleSets this equal to 'src'- Specified by:
setToin classGeoTuple<Point3D_I32>- Parameters:
p- The tuple being copied- Returns:
- Reference to 'this' class instance. Used to chain operations.
-
zero
public void zero()Description copied from class:GeoTupleSets all coefficients and parameters to zero, which is typically the initial state.- Specified by:
zeroin classGeoTuple<Point3D_I32>
-
isIdentical
-
toString
-
getDimension
public int getDimension()Description copied from class:GeoTupleThe dimensionality of space the tuple is contained in and the number of values it has.- Specified by:
getDimensionin classGeoTuple<Point3D_I32>- Returns:
- Dimensionality of the object.
-
createNewInstance
Description copied from class:GeoTupleCreates a new tuple instance of the same type.
- Specified by:
createNewInstancein classGeoTuple<Point3D_I32>- Returns:
- new tuple instance.
-
equals
-
hashCode
public int hashCode()
-