public class Matrix6By6 extends Object implements IEquatable<Matrix6By6>, IEquatableEpsilon<Matrix6By6>
Constructor and Description |
---|
Matrix6By6(double m11,
double m12,
double m13,
double m14,
double m15,
double m16,
double m21,
double m22,
double m23,
double m24,
double m25,
double m26,
double m31,
double m32,
double m33,
double m34,
double m35,
double m36,
double m41,
double m42,
double m43,
double m44,
double m45,
double m46,
double m51,
double m52,
double m53,
double m54,
double m55,
double m56,
double m61,
double m62,
double m63,
double m64,
double m65,
double m66)
Initializes a new
Matrix6By6 instance from elements. |
Matrix6By6(Matrix6By6Symmetric matrix)
Initializes a new instance from a
Matrix6By6Symmetric . |
Modifier and Type | Method and Description |
---|---|
Matrix6By6 |
add(Matrix6By6 matrix)
Adds a matrix to this matrix.
|
static Matrix6By6 |
add(Matrix6By6 left,
Matrix6By6 right)
Adds a matrix to this matrix.
|
static Matrix6By6 |
add(Matrix6By6 left,
Matrix6By6Symmetric right)
Adds a matrix to this matrix.
|
Matrix6By6 |
add(Matrix6By6Symmetric matrix)
Adds a matrix to this matrix.
|
static boolean |
equals(Matrix6By6 left,
Matrix6By6 right)
Returns
true if the two instances are exactly equal. |
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
boolean |
equalsEpsilon(Matrix6By6 other,
double epsilon)
Returns true if all of the elements of this matrix are within
epsilon
of the same elements of the specified matrix. |
boolean |
equalsType(Matrix6By6 other)
Indicates whether another instance of this type is exactly equal to this instance.
|
double |
get(int row,
int column)
Accesses the matrix elements using zero-based indexing.
|
static Matrix6By6 |
getIdentity()
Gets a
Matrix6By6 representing an identity transformation. |
boolean |
getIsUndefined()
Gets a value indicating whether any of the matrix values are
Double.NaN . |
double |
getM11()
Gets the element in the first row, first column.
|
double |
getM12()
Gets the element in the first row, second column.
|
double |
getM13()
Gets the element in the first row, third column.
|
double |
getM14()
Gets the element in the first row, fourth column.
|
double |
getM15()
Gets the element in the first row, fifth column.
|
double |
getM16()
Gets the element in the first row, sixth column.
|
double |
getM21()
Gets the element in the second row, first column.
|
double |
getM22()
Gets the element in the second row, second column.
|
double |
getM23()
Gets the element in the second row, third column.
|
double |
getM24()
Gets the element in the second row, fourth column.
|
double |
getM25()
Gets the element in the second row, fifth column.
|
double |
getM26()
Gets the element in the second row, sixth column.
|
double |
getM31()
Gets the element in the third row, first column.
|
double |
getM32()
Gets the element in the third row, second column.
|
double |
getM33()
Gets the element in the third row, third column.
|
double |
getM34()
Gets the element in the third row, fourth column.
|
double |
getM35()
Gets the element in the third row, fifth column.
|
double |
getM36()
Gets the element in the third row, sixth column.
|
double |
getM41()
Gets the element in the fourth row, first column.
|
double |
getM42()
Gets the element in the fourth row, second column.
|
double |
getM43()
Gets the element in the fourth row, third column.
|
double |
getM44()
Gets the element in the fourth row, fourth column.
|
double |
getM45()
Gets the element in the fourth row, fifth column.
|
double |
getM46()
Gets the element in the fourth row, sixth column.
|
double |
getM51()
Gets the element in the fifth row, first column.
|
double |
getM52()
Gets the element in the fifth row, second column.
|
double |
getM53()
Gets the element in the fifth row, third column.
|
double |
getM54()
Gets the element in the fifth row, fourth column.
|
double |
getM55()
Gets the element in the fifth row, fifth column.
|
double |
getM56()
Gets the element in the fifth row, sixth column.
|
double |
getM61()
Gets the element in the sixth row, first column.
|
double |
getM62()
Gets the element in the sixth row, second column.
|
double |
getM63()
Gets the element in the sixth row, third column.
|
double |
getM64()
Gets the element in the sixth row, fourth column.
|
double |
getM65()
Gets the element in the sixth row, fifth column.
|
double |
getM66()
Gets the element in the sixth row, sixth column.
|
static Matrix6By6 |
getUndefined()
Gets a
Matrix6By6 representing an undefined matrix containing Double.NaN values. |
static Matrix6By6 |
getZero()
Gets a
Matrix6By6 representing the zero matrix. |
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
Matrix6By6 |
multiply(double scalar)
Multiplies this matrix by a scalar.
|
static Matrix6By6 |
multiply(double scalar,
Matrix6By6 matrix)
Multiplies a scalar by a matrix.
|
Matrix6By6 |
multiply(Matrix6By6 matrix)
Multiplies this matrix by a matrix.
|
static Matrix6By6 |
multiply(Matrix6By6 matrix,
double scalar)
Multiplies a matrix by a scalar.
|
static Matrix6By6 |
multiply(Matrix6By6 left,
Matrix6By6 right)
Multiplies the left matrix by the right matrix.
|
static Matrix6By6 |
multiply(Matrix6By6 left,
Matrix6By6Symmetric right)
Multiplies the left matrix by the right matrix.
|
Matrix6By6 |
multiply(Matrix6By6Symmetric matrix)
Multiplies this matrix by a matrix.
|
static boolean |
notEquals(Matrix6By6 left,
Matrix6By6 right)
Returns
true if the two instances are not exactly equal. |
Matrix6By6 |
subtract(Matrix6By6 matrix)
Subtracts a matrix from this matrix.
|
static Matrix6By6 |
subtract(Matrix6By6 left,
Matrix6By6 right)
Subtracts the second matrix from the first.
|
static Matrix6By6 |
subtract(Matrix6By6 left,
Matrix6By6Symmetric right)
Subtracts the second matrix from the first.
|
Matrix6By6 |
subtract(Matrix6By6Symmetric matrix)
Subtracts a matrix from this matrix.
|
Matrix6By6 |
transpose()
Transposes the matrix.
|
public Matrix6By6(double m11, double m12, double m13, double m14, double m15, double m16, double m21, double m22, double m23, double m24, double m25, double m26, double m31, double m32, double m33, double m34, double m35, double m36, double m41, double m42, double m43, double m44, double m45, double m46, double m51, double m52, double m53, double m54, double m55, double m56, double m61, double m62, double m63, double m64, double m65, double m66)
Matrix6By6
instance from elements.m11
- 1,1m12
- 1,2m13
- 1,3m14
- 1,4m15
- 1,5m16
- 1,6m21
- 2,1m22
- 2,2m23
- 2,3m24
- 2,4m25
- 2,5m26
- 2,6m31
- 3,1m32
- 3,2m33
- 3,3m34
- 3,4m35
- 3,5m36
- 3,6m41
- 4,1m42
- 4,2m43
- 4,3m44
- 4,4m45
- 4,5m46
- 4,6m51
- 5,1m52
- 5,2m53
- 5,3m54
- 5,4m55
- 5,5m56
- 5,6m61
- 6,1m62
- 6,2m63
- 6,3m64
- 6,4m65
- 6,5m66
- 6,6public Matrix6By6(@Nonnull Matrix6By6Symmetric matrix)
Matrix6By6Symmetric
.matrix
- The symmetric matrix.@Nonnull public static Matrix6By6 getIdentity()
Matrix6By6
representing an identity transformation.@Nonnull public static Matrix6By6 getZero()
Matrix6By6
representing the zero matrix.@Nonnull public static Matrix6By6 getUndefined()
Matrix6By6
representing an undefined matrix containing Double.NaN
values.public final double get(int row, int column)
row
- The row index.column
- The column index.ArgumentOutOfRangeException
- Thrown when either row
or column
is less than 0 or greater than 5.public final double getM11()
public final double getM12()
public final double getM13()
public final double getM14()
public final double getM15()
public final double getM16()
public final double getM21()
public final double getM22()
public final double getM23()
public final double getM24()
public final double getM25()
public final double getM26()
public final double getM31()
public final double getM32()
public final double getM33()
public final double getM34()
public final double getM35()
public final double getM36()
public final double getM41()
public final double getM42()
public final double getM43()
public final double getM44()
public final double getM45()
public final double getM46()
public final double getM51()
public final double getM52()
public final double getM53()
public final double getM54()
public final double getM55()
public final double getM56()
public final double getM61()
public final double getM62()
public final double getM63()
public final double getM64()
public final double getM65()
public final double getM66()
@Nonnull public final Matrix6By6 transpose()
public final boolean getIsUndefined()
Double.NaN
.@Nonnull public final Matrix6By6 add(@Nonnull Matrix6By6 matrix)
matrix
- The matrix.@Nonnull public final Matrix6By6 add(@Nonnull Matrix6By6Symmetric matrix)
matrix
- The matrix.@Nonnull public final Matrix6By6 subtract(@Nonnull Matrix6By6 matrix)
matrix
- The matrix to subtract.@Nonnull public final Matrix6By6 subtract(@Nonnull Matrix6By6Symmetric matrix)
matrix
- The matrix to subtract.@Nonnull public final Matrix6By6 multiply(@Nonnull Matrix6By6 matrix)
matrix
- The matrix to multiply by.@Nonnull public final Matrix6By6 multiply(@Nonnull Matrix6By6Symmetric matrix)
matrix
- The matrix to multiply by.@Nonnull public final Matrix6By6 multiply(double scalar)
scalar
- The scalar to multiply by.public static Matrix6By6 add(Matrix6By6 left, Matrix6By6 right)
left
- The left matrix.right
- The right matrix.public static Matrix6By6 add(Matrix6By6 left, Matrix6By6Symmetric right)
left
- The left matrix.right
- The right matrix.public static Matrix6By6 subtract(Matrix6By6 left, Matrix6By6 right)
left
- The left matrix.right
- The right matrix.public static Matrix6By6 subtract(Matrix6By6 left, Matrix6By6Symmetric right)
left
- The left matrix.right
- The right matrix.public static Matrix6By6 multiply(Matrix6By6 left, Matrix6By6 right)
left
- The matrix on the left.right
- The matrix on the right.public static Matrix6By6 multiply(Matrix6By6 left, Matrix6By6Symmetric right)
left
- The matrix on the left.right
- The matrix on the right.public static Matrix6By6 multiply(double scalar, Matrix6By6 matrix)
scalar
- The scalar.matrix
- The matrix.public static Matrix6By6 multiply(Matrix6By6 matrix, double scalar)
matrix
- The matrix.scalar
- The scalar.public final boolean equalsEpsilon(Matrix6By6 other, double epsilon)
epsilon
of the same elements of the specified matrix. That is, in order for the matrices to be
considered equal (and for this function to return true), the absolute value of the
difference between each of their elements must be less than or equal to epsilon
.equalsEpsilon
in interface IEquatableEpsilon<Matrix6By6>
other
- The Matrix6By6
to compare to this matrix.epsilon
- The largest difference between the elements of the matrices for which they will be considered equal.public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public final boolean equalsType(Matrix6By6 other)
equalsType
in interface IEquatable<Matrix6By6>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static boolean equals(Matrix6By6 left, Matrix6By6 right)
true
if the two instances are exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
represents the same value as right
; otherwise false
.public static boolean notEquals(Matrix6By6 left, Matrix6By6 right)
true
if the two instances are not exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
does not represent the same value as right
; otherwise false
.