Package com.io7m.jtensors.storage.heap
Class VectorMutable2L
java.lang.Object
com.io7m.jtensors.storage.heap.VectorMutable2L
- All Implemented Interfaces:
VectorReadable2LType,VectorStorageIntegral2Type,VectorStorageType
public final class VectorMutable2L extends java.lang.Object implements VectorStorageIntegral2Type
A heap-based vector.
-
Constructor Summary
Constructors Constructor Description VectorMutable2L()Create a new vector. -
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.unparameterized.vectors.VectorStorageIntegral2Type
setVector2I, setVector2L, setXY
-
Constructor Details
-
VectorMutable2L
public VectorMutable2L()Create a new vector.
-
-
Method Details
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
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
-