Package com.io7m.jtensors.storage.heap
Class PVectorMutable4D<T>
java.lang.Object
com.io7m.jtensors.storage.heap.PVectorMutable4D<T>
- Type Parameters:
T- A phantom type parameter
- All Implemented Interfaces:
PVectorReadable2DType<T>,PVectorReadable3DType<T>,PVectorReadable4DType<T>,VectorReadable2DType,VectorReadable3DType,VectorReadable4DType,PVectorStorageFloating2Type<T>,PVectorStorageFloating3Type<T>,PVectorStorageFloating4Type<T>,VectorStorageFloating2Type,VectorStorageFloating3Type,VectorStorageFloating4Type,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.PVectorStorageFloating2Type
setPVector2D, setPVector2FMethods inherited from interface com.io7m.jtensors.storage.api.parameterized.vectors.PVectorStorageFloating3Type
setPVector3D, setPVector3FMethods inherited from interface com.io7m.jtensors.storage.api.parameterized.vectors.PVectorStorageFloating4Type
setPVector4D, setPVector4FMethods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageFloating2Type
setVector2D, setVector2F, setXYMethods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageFloating3Type
setVector3D, setVector3F, setXYZMethods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageFloating4Type
setVector4D, setVector4F, setXYZW
-
Constructor Details
-
PVectorMutable4D
public PVectorMutable4D()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
-
w
public double w()- Specified by:
win interfaceVectorReadable4DType- Returns:
- The
wcomponent
-
z
public double z()- Specified by:
zin interfaceVectorReadable3DType- Returns:
- The
zcomponent
-
setZ
public void setZ(double in_z) Description copied from interface:VectorStorageFloating3TypeSet thezcomponent.- Specified by:
setZin interfaceVectorStorageFloating3Type- Parameters:
in_z- The Z component
-
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
-
setW
public void setW(double in_w) Description copied from interface:VectorStorageFloating4TypeSet thewcomponent.- Specified by:
setWin interfaceVectorStorageFloating4Type- Parameters:
in_w- The W component
-