Package com.io7m.jtensors.storage.heap
Class PVectorMutable2L<T>
java.lang.Object
com.io7m.jtensors.storage.heap.PVectorMutable2L<T>
- Type Parameters:
T- A phantom type parameter
- All Implemented Interfaces:
PVectorReadable2LType<T>,VectorReadable2LType,PVectorStorageIntegral2Type<T>,VectorStorageIntegral2Type,VectorStorageType
A heap-based vector.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jtensors.storage.api.parameterized.vectors.PVectorStorageIntegral2Type
setPVector2I, setPVector2LMethods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageIntegral2Type
setVector2I, setVector2L, setXY
-
Constructor Details
-
PVectorMutable2L
public PVectorMutable2L()Create a new vector.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
x
public long x()- Specified by:
xin interfaceVectorReadable2LType- Returns:
- The
xcomponent
-
y
public long y()- Specified by:
yin interfaceVectorReadable2LType- Returns:
- The
ycomponent
-
setX
public void setX(long in_x) Description copied from interface:VectorStorageIntegral2TypeSet thexcomponent.- Specified by:
setXin interfaceVectorStorageIntegral2Type- Parameters:
in_x- The X component
-
setY
public void setY(long in_y) Description copied from interface:VectorStorageIntegral2TypeSet theYcomponent.- Specified by:
setYin interfaceVectorStorageIntegral2Type- Parameters:
in_y- The Y component
-