public final class VectorByteBufferedFloating4s32 extends Object implements VectorByteBufferedFloating4Type
A storage vector.
Storage component type: float
Storage component count: 4
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
byteBuffer() |
long |
byteOffset() |
protected int |
byteOffsetForIndex(int component_index) |
protected int |
componentBytes() |
protected int |
componentCount() |
static VectorByteBufferedFloating4Type |
createWithBase(ByteBuffer b,
com.io7m.mutable.numbers.core.MutableLongType base,
int offset)
Return a new vector that is backed by the given byte buffer
b |
int |
offset() |
void |
setW(double w)
Set the
w component. |
void |
setX(double x)
Set the
x component. |
void |
setY(double y)
Set the
Y component. |
void |
setZ(double z)
Set the
z component. |
int |
sizeBytes() |
double |
w() |
double |
x() |
double |
y() |
double |
z() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetVector4D, setVector4F, setXYZWsetVector3D, setVector3F, setXYZsetVector2D, setVector2F, setXYbyteBuffer, byteOffset, offset, sizeBytespublic static VectorByteBufferedFloating4Type createWithBase(ByteBuffer b, com.io7m.mutable.numbers.core.MutableLongType base, int offset)
Return a new vector that is backed by the given byte buffer b
The data for the instance will be taken from the data at the current
value of base.get() + offset, each time a field is requested or
set.
No initialization of the data is performed.
b - The byte bufferbase - The base addressoffset - A constant offsetprotected int componentCount()
public double x()
x in interface VectorReadable2DTypex componentpublic double y()
y in interface VectorReadable2DTypey componentpublic double z()
z in interface VectorReadable3DTypez componentpublic double w()
w in interface VectorReadable4DTypew componentpublic void setX(double x)
VectorStorageFloating2Typex component.setX in interface VectorStorageFloating2Typex - The X componentpublic void setY(double y)
VectorStorageFloating2TypeY component.setY in interface VectorStorageFloating2Typey - The Y componentpublic void setZ(double z)
VectorStorageFloating3Typez component.setZ in interface VectorStorageFloating3Typez - The Z componentpublic void setW(double w)
VectorStorageFloating4Typew component.setW in interface VectorStorageFloating4Typew - The W componentprotected final int componentBytes()
public final ByteBuffer byteBuffer()
byteBuffer in interface TensorByteBufferedTypepublic final long byteOffset()
byteOffset in interface TensorByteBufferedTypepublic final int offset()
offset in interface TensorByteBufferedTypeTensorByteBufferedType.byteOffset().public final int sizeBytes()
sizeBytes in interface TensorByteBufferedTypeprotected final int byteOffsetForIndex(int component_index)
Copyright © 2017 <code@io7m.com> http://io7m.com