Package com.io7m.jtensors.storage.heap
Class VectorMutable2D
java.lang.Object
com.io7m.jtensors.storage.heap.VectorMutable2D
- All Implemented Interfaces:
VectorReadable2DType,VectorStorageFloating2Type,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.unparameterized.vectors.VectorStorageFloating2Type
setVector2D, setVector2F, setXY
-
Constructor Details
-
VectorMutable2D
public VectorMutable2D()Create a new vector.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
x
public double x()- Specified by:
xin interfaceVectorReadable2DType- Returns:
- The
xcomponent
-
y
public double y()- Specified by:
yin interfaceVectorReadable2DType- Returns:
- The
ycomponent
-
setX
public void setX(double in_x) Description copied from interface:VectorStorageFloating2TypeSet thexcomponent.- Specified by:
setXin interfaceVectorStorageFloating2Type- Parameters:
in_x- The X component
-
setY
public void setY(double in_y) Description copied from interface:VectorStorageFloating2TypeSet theYcomponent.- Specified by:
setYin interfaceVectorStorageFloating2Type- Parameters:
in_y- The Y component
-