A
- A phantom type parameter (possibly representing a source
coordinate system)B
- A phantom type parameter (possibly representing a target
coordinate system)PMatrixReadable4x4DType<A,B>
, MatrixReadable4x4DType
, MatrixReadableDType
, MatrixStorageType
, PMatrixStorage4x4Type<A,B>
, MatrixStorage4x4Type
, MatrixByteBufferedType
, PMatrixByteBuffered4x4Type<A,B>
, TensorByteBufferedType
public final class PMatrixByteBuffered4x4s64<A,B> extends Object implements PMatrixByteBuffered4x4Type<A,B>
A storage matrix.
Storage component type: double
Storage component count: 4x4
Modifier and Type | Method | Description |
---|---|---|
ByteBuffer |
byteBuffer() |
|
long |
byteOffset() |
|
protected int |
byteOffsetForIndex(int component_index) |
|
protected int |
componentBytes() |
|
protected int |
componentCount() |
|
static <A,B> PMatrixByteBuffered4x4s64<A,B> |
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() |
|
double |
r0c0() |
|
double |
r0c1() |
|
double |
r0c2() |
|
double |
r0c3() |
|
double |
r1c0() |
|
double |
r1c1() |
|
double |
r1c2() |
|
double |
r1c3() |
|
double |
r2c0() |
|
double |
r2c1() |
|
double |
r2c2() |
|
double |
r2c3() |
|
double |
r3c0() |
|
double |
r3c1() |
|
double |
r3c2() |
|
double |
r3c3() |
|
void |
setMatrix4x4D(Matrix4x4D m) |
Set the components from the given matrix.
|
void |
setMatrix4x4F(Matrix4x4F m) |
Set the components from the given matrix.
|
void |
setPMatrix4x4D(PMatrix4x4D<A,B> m) |
Set the components from the given matrix.
|
void |
setPMatrix4x4F(PMatrix4x4F<A,B> m) |
Set the components from the given matrix.
|
int |
sizeBytes() |
rowColumn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
byteBuffer, byteOffset, offset, sizeBytes
public static <A,B> PMatrixByteBuffered4x4s64<A,B> 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.
A
- A phantom type parameter (possibly representing a source
coordinate system)B
- A phantom type parameter (possibly representing a target
coordinate system)b
- The byte bufferbase
- The base addressoffset
- A constant offsetprotected int componentCount()
public double r0c0()
r0c0
in interface MatrixReadable4x4DType
public double r0c1()
r0c1
in interface MatrixReadable4x4DType
public double r0c2()
r0c2
in interface MatrixReadable4x4DType
public double r0c3()
r0c3
in interface MatrixReadable4x4DType
public double r1c0()
r1c0
in interface MatrixReadable4x4DType
public double r1c1()
r1c1
in interface MatrixReadable4x4DType
public double r1c2()
r1c2
in interface MatrixReadable4x4DType
public double r1c3()
r1c3
in interface MatrixReadable4x4DType
public double r2c0()
r2c0
in interface MatrixReadable4x4DType
public double r2c1()
r2c1
in interface MatrixReadable4x4DType
public double r2c2()
r2c2
in interface MatrixReadable4x4DType
public double r2c3()
r2c3
in interface MatrixReadable4x4DType
public double r3c0()
r3c0
in interface MatrixReadable4x4DType
public double r3c1()
r3c1
in interface MatrixReadable4x4DType
public double r3c2()
r3c2
in interface MatrixReadable4x4DType
public double r3c3()
r3c3
in interface MatrixReadable4x4DType
public void setPMatrix4x4D(PMatrix4x4D<A,B> m)
PMatrixStorage4x4Type
setPMatrix4x4D
in interface PMatrixStorage4x4Type<A,B>
m
- The source matrixpublic void setPMatrix4x4F(PMatrix4x4F<A,B> m)
PMatrixStorage4x4Type
setPMatrix4x4F
in interface PMatrixStorage4x4Type<A,B>
m
- The source matrixpublic void setMatrix4x4D(Matrix4x4D m)
MatrixStorage4x4Type
setMatrix4x4D
in interface MatrixStorage4x4Type
m
- The source matrixpublic void setMatrix4x4F(Matrix4x4F m)
MatrixStorage4x4Type
setMatrix4x4F
in interface MatrixStorage4x4Type
m
- The source matrixprotected final int componentBytes()
public final ByteBuffer byteBuffer()
byteBuffer
in interface TensorByteBufferedType
public final long byteOffset()
byteOffset
in interface TensorByteBufferedType
public final int offset()
offset
in interface TensorByteBufferedType
TensorByteBufferedType.byteOffset()
.public final int sizeBytes()
sizeBytes
in interface TensorByteBufferedType
protected final int byteOffsetForIndex(int component_index)
Copyright © 2017 <code@io7m.com> http://io7m.com