A - A phantom type parameter (possibly representing a source
coordinate system)B - A phantom type parameter (possibly representing a target
coordinate system)MatrixComputationalType, PMatrix2x2DType<A,B>, PMatrixReadable2x2DType<A,B>, MatrixReadable2x2DType, MatrixReadableDTypepublic final class PMatrix2x2D<A,B> extends Object implements PMatrix2x2DType<A,B>
double-typed matrices.| Modifier and Type | Class | Description |
|---|---|---|
static class |
PMatrix2x2D.Builder<A,B> |
Builds instances of type
PMatrix2x2D. |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> PMatrix2x2D.Builder<A,B> |
builder() |
Creates a builder for
PMatrix2x2D. |
boolean |
equals(Object another) |
This instance is equal to all instances of
PMatrix2x2D that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
r0c0, r0c1, r1c0, r1c1. |
static <A,B> PMatrix2x2D<A,B> |
of(double r0c0,
double r0c1,
double r1c0,
double r1c1) |
Construct a new immutable
PMatrix2x2D instance. |
double |
r0c0() |
|
double |
r0c1() |
|
double |
r1c0() |
|
double |
r1c1() |
|
String |
toString() |
Prints the immutable value
PMatrix2x2D with attribute values. |
rowColumnpublic double r0c0()
r0c0 in interface MatrixReadable2x2DTyper0c0 in interface PMatrix2x2DType<A,B>public double r0c1()
r0c1 in interface MatrixReadable2x2DTyper0c1 in interface PMatrix2x2DType<A,B>public double r1c0()
r1c0 in interface MatrixReadable2x2DTyper1c0 in interface PMatrix2x2DType<A,B>public double r1c1()
r1c1 in interface MatrixReadable2x2DTyper1c1 in interface PMatrix2x2DType<A,B>public boolean equals(Object another)
PMatrix2x2D that have equal attribute values.public int hashCode()
r0c0, r0c1, r1c0, r1c1.public String toString()
PMatrix2x2D with attribute values.public static <A,B> PMatrix2x2D<A,B> of(double r0c0, double r0c1, double r1c0, double r1c1)
PMatrix2x2D instance.r0c0 - The value for the r0c0 attributer0c1 - The value for the r0c1 attributer1c0 - The value for the r1c0 attributer1c1 - The value for the r1c1 attributepublic static <A,B> PMatrix2x2D.Builder<A,B> builder()
PMatrix2x2D.A - generic parameter AB - generic parameter BCopyright © 2017 <code@io7m.com> http://io7m.com