Package com.io7m.jtensors.storage.heap
Class VectorMutable2L
java.lang.Object
com.io7m.jtensors.storage.heap.VectorMutable2L
- All Implemented Interfaces:
VectorReadable2LType
,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, wait
Methods 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
-
hashCode
public int hashCode() -
toString
-
x
public long x()- Specified by:
x
in interfaceVectorReadable2LType
- Returns:
- The
x
component
-
y
public long y()- Specified by:
y
in interfaceVectorReadable2LType
- Returns:
- The
y
component
-
setX
public void setX(long in_x) Description copied from interface:VectorStorageIntegral2Type
Set thex
component.- Specified by:
setX
in interfaceVectorStorageIntegral2Type
- Parameters:
in_x
- The X component
-
setY
public void setY(long in_y) Description copied from interface:VectorStorageIntegral2Type
Set theY
component.- Specified by:
setY
in interfaceVectorStorageIntegral2Type
- Parameters:
in_y
- The Y component
-