Package com.io7m.jtensors.storage.heap
Class PVectorMutable2D<T>
java.lang.Object
com.io7m.jtensors.storage.heap.PVectorMutable2D<T>
- Type Parameters:
T
- A phantom type parameter
- All Implemented Interfaces:
PVectorReadable2DType<T>
,VectorReadable2DType
,PVectorStorageFloating2Type<T>
,VectorStorageFloating2Type
,VectorStorageType
public final class PVectorMutable2D<T> extends java.lang.Object implements PVectorStorageFloating2Type<T>
A heap-based vector.
-
Constructor Summary
Constructors Constructor Description PVectorMutable2D()
Create a new vector. -
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.parameterized.vectors.PVectorStorageFloating2Type
setPVector2D, setPVector2F
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageFloating2Type
setVector2D, setVector2F, setXY
-
Constructor Details
-
PVectorMutable2D
public PVectorMutable2D()Create a new vector.
-
-
Method Details
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
x
public double x()- Specified by:
x
in interfaceVectorReadable2DType
- Returns:
- The
x
component
-
y
public double y()- Specified by:
y
in interfaceVectorReadable2DType
- Returns:
- The
y
component
-
setX
public void setX(double in_x)Description copied from interface:VectorStorageFloating2Type
Set thex
component.- Specified by:
setX
in interfaceVectorStorageFloating2Type
- Parameters:
in_x
- The X component
-
setY
public void setY(double in_y)Description copied from interface:VectorStorageFloating2Type
Set theY
component.- Specified by:
setY
in interfaceVectorStorageFloating2Type
- Parameters:
in_y
- The Y component
-