Package com.io7m.jtensors.storage.heap
Class VectorMutable4D
java.lang.Object
com.io7m.jtensors.storage.heap.VectorMutable4D
- All Implemented Interfaces:
VectorReadable2DType
,VectorReadable3DType
,VectorReadable4DType
,VectorStorageFloating2Type
,VectorStorageFloating3Type
,VectorStorageFloating4Type
,VectorStorageType
public final class VectorMutable4D extends java.lang.Object implements VectorStorageFloating4Type
A heap-based vector.
-
Constructor Summary
Constructors Constructor Description VectorMutable4D()
Create a new vector. -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
void
setW(double in_w)
Set thew
component.void
setX(double in_x)
Set thex
component.void
setY(double in_y)
Set theY
component.void
setZ(double in_z)
Set thez
component.java.lang.String
toString()
double
w()
double
x()
double
y()
double
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.unparameterized.vectors.VectorStorageFloating2Type
setVector2D, setVector2F, setXY
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageFloating3Type
setVector3D, setVector3F, setXYZ
Methods inherited from interface com.io7m.jtensors.storage.api.unparameterized.vectors.VectorStorageFloating4Type
setVector4D, setVector4F, setXYZW
-
Constructor Details
-
VectorMutable4D
public VectorMutable4D()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
-
w
public double w()- Specified by:
w
in interfaceVectorReadable4DType
- Returns:
- The
w
component
-
z
public double z()- Specified by:
z
in interfaceVectorReadable3DType
- Returns:
- The
z
component
-
setZ
public void setZ(double in_z)Description copied from interface:VectorStorageFloating3Type
Set thez
component.- Specified by:
setZ
in interfaceVectorStorageFloating3Type
- Parameters:
in_z
- The Z 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
-
setW
public void setW(double in_w)Description copied from interface:VectorStorageFloating4Type
Set thew
component.- Specified by:
setW
in interfaceVectorStorageFloating4Type
- Parameters:
in_w
- The W component
-