Package com.io7m.jtensors.storage.heap
Class VectorMutable3L
java.lang.Object
com.io7m.jtensors.storage.heap.VectorMutable3L
- All Implemented Interfaces:
VectorReadable2LType
,VectorReadable3LType
,VectorStorageIntegral2Type
,VectorStorageIntegral3Type
,VectorStorageType
public final class VectorMutable3L extends java.lang.Object implements VectorStorageIntegral3Type
A heap-based vector.
-
Constructor Summary
Constructors Constructor Description VectorMutable3L()
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.unparameterized.vectors.VectorStorageIntegral2Type
setVector2I, setVector2L, setXY
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageIntegral3Type
setVector3I, setVector3L, setXYZ
-
Constructor Details
-
VectorMutable3L
public VectorMutable3L()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
-
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
-