Package com.io7m.jtensors.storage.heap
Class PVectorMutable4L<T>
java.lang.Object
com.io7m.jtensors.storage.heap.PVectorMutable4L<T>
- Type Parameters:
T
- A phantom type parameter
- All Implemented Interfaces:
PVectorReadable2LType<T>
,PVectorReadable3LType<T>
,PVectorReadable4LType<T>
,VectorReadable2LType
,VectorReadable3LType
,VectorReadable4LType
,PVectorStorageIntegral2Type<T>
,PVectorStorageIntegral3Type<T>
,PVectorStorageIntegral4Type<T>
,VectorStorageIntegral2Type
,VectorStorageIntegral3Type
,VectorStorageIntegral4Type
,VectorStorageType
public final class PVectorMutable4L<T> extends java.lang.Object implements PVectorStorageIntegral4Type<T>
A heap-based vector.
-
Constructor Summary
Constructors Constructor Description PVectorMutable4L()
Create a new vector. -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
void
setW(long in_w)
Set thew
component.void
setX(long in_x)
Set thex
component.void
setY(long in_y)
Set theY
component.void
setZ(long in_z)
Set thez
component.java.lang.String
toString()
long
w()
long
x()
long
y()
long
z()
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.PVectorStorageIntegral2Type
setPVector2I, setPVector2L
Methods inherited from interface com.io7m.jtensors.storage.api.parameterized.vectors.PVectorStorageIntegral3Type
setPVector3I, setPVector3L
Methods inherited from interface com.io7m.jtensors.storage.api.parameterized.vectors.PVectorStorageIntegral4Type
setPVector4I, setPVector4L
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageIntegral2Type
setVector2I, setVector2L, setXY
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageIntegral3Type
setVector3I, setVector3L, setXYZ
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageIntegral4Type
setVector4I, setVector4L, setXYZW
-
Constructor Details
-
PVectorMutable4L
public PVectorMutable4L()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 long x()- Specified by:
x
in interfaceVectorReadable2LType
- Returns:
- The
x
component
-
y
public long y()- Specified by:
y
in interfaceVectorReadable2LType
- Returns:
- The
y
component
-
w
public long w()- Specified by:
w
in interfaceVectorReadable4LType
- Returns:
- The
w
component
-
z
public long z()- Specified by:
z
in interfaceVectorReadable3LType
- Returns:
- The
z
component
-
setZ
public void setZ(long in_z)Description copied from interface:VectorStorageIntegral3Type
Set thez
component.- Specified by:
setZ
in interfaceVectorStorageIntegral3Type
- Parameters:
in_z
- The Z 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
-
setW
public void setW(long in_w)Description copied from interface:VectorStorageIntegral4Type
Set thew
component.- Specified by:
setW
in interfaceVectorStorageIntegral4Type
- Parameters:
in_w
- The W component
-