public class Matrixx extends Object
| Constructor and Description |
|---|
Matrixx() |
| Modifier and Type | Method and Description |
|---|---|
static AMatrix |
create(AMatrix m)
Creates a mutable deep copy of a matrix
|
static AMatrix |
create(IMatrix m)
Creates a mutable copy of a matrix
|
static Matrix22 |
create2DRotationMatrix(double angle) |
static AMatrix |
createFromVector(AVector data,
int rows,
int columns) |
static AMatrix |
createFromVectors(AVector... data) |
static AMatrix |
createFromVectors(List<AVector> data) |
static AMatrix |
createIdentityMatrix(int dimensions)
Creates an mutable identity matrix
|
static IdentityMatrix |
createImmutableIdentityMatrix(int dimensions)
Creates an immutable identity matrix
|
static ZeroMatrix |
createImmutableZeroMatrix(int rows,
int columns)
Creates an immutable zero-filled matrix
|
static AMatrix |
createRandomMatrix(int rows,
int columns) |
static AMatrix |
createRandomSquareMatrix(int dimensions) |
static Matrix33 |
createRotationMatrix(AVector v,
double angle) |
static Matrix33 |
createRotationMatrix(double x,
double y,
double z,
double angle) |
static Matrix33 |
createRotationMatrix(Vector3 axis,
double angle) |
static ADiagonalMatrix |
createScalarMatrix(int dimensions,
double factor) |
static DiagonalMatrix |
createScaleMatrix(double... scalingFactors) |
static ADiagonalMatrix |
createScaleMatrix(int dimensions,
double factor) |
static Matrix33 |
createXAxisRotationMatrix(double angle) |
static Matrix33 |
createYAxisRotationMatrix(double angle) |
static Matrix33 |
createZAxisRotationMatrix(double angle) |
static AMatrix |
deepCopy(AMatrix m) |
static void |
fillRandomValues(AMatrix m) |
static AMatrix |
newMatrix(int rows,
int columns)
Creates an empty (zero-filled) mutable matrix of the specified size
|
static AMatrix |
parse(String ednString)
Parse a matrix in edn format
|
static AMatrix |
toMatrix(Object o)
Coerces to a matrix
|
public static AMatrix createIdentityMatrix(int dimensions)
public static IdentityMatrix createImmutableIdentityMatrix(int dimensions)
public static ZeroMatrix createImmutableZeroMatrix(int rows, int columns)
public static ADiagonalMatrix createScaleMatrix(int dimensions, double factor)
public static ADiagonalMatrix createScalarMatrix(int dimensions, double factor)
public static DiagonalMatrix createScaleMatrix(double... scalingFactors)
public static Matrix22 create2DRotationMatrix(double angle)
public static Matrix33 createRotationMatrix(double x, double y, double z, double angle)
public static Matrix33 createXAxisRotationMatrix(double angle)
public static Matrix33 createYAxisRotationMatrix(double angle)
public static Matrix33 createZAxisRotationMatrix(double angle)
public static AMatrix createRandomSquareMatrix(int dimensions)
public static AMatrix createRandomMatrix(int rows, int columns)
public static AMatrix newMatrix(int rows, int columns)
rows - columns - public static void fillRandomValues(AMatrix m)
public static AMatrix parse(String ednString)
ednString - Copyright © 2013. All Rights Reserved.