Package edu.nps.moves.legacy.math
Class Matrix3f
java.lang.Object
edu.nps.moves.legacy.math.Matrix3f
EXECUTIVE SUMMARY
Module Name: Matrix3f.java
Description: Definition of the Matrix3f class
- Author:
- Kent A. Watsen, http://www.mbay.net/~watsen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getEulers(float[] hpr)
void
getEulers(float[] h, float[] p, float[] r)
void
getMat(float[][] mat)
Accessor method to get matrixvoid
float
getMatValue(int row, int col)
Get a single value in matrixvoid
getQuat(Quaternion quat)
void
void
makeNull()
void
print()
output matrix to consolevoid
setEulers(float[] hpr)
void
setEulers(float h, float p, float r)
void
setMat(float[][] mat)
Accessor method to set new matrixvoid
Accessor method to set new matrixvoid
setMatValue(int row, int col, float val)
Set a single value in matrixvoid
setQuat(Quaternion quat)
Accessor method to set new matrixvoid
xform(float[] v)
void
-
Constructor Details
-
Matrix3f
public Matrix3f()constructor -
Matrix3f
public Matrix3f(float[][] mat)constructor- Parameters:
mat
- initialization matrix
-
Matrix3f
constructor- Parameters:
mat
- initialization matrix
-
Matrix3f
constructor- Parameters:
quat
- initialization quaternion
-
Matrix3f
public Matrix3f(float[] hpr)constructor- Parameters:
hpr
- initialization heading, pitch, roll
-
Matrix3f
public Matrix3f(float heading, float pitch, float roll)constructor- Parameters:
heading
- initialization headingpitch
- initialization pitchroll
- initialization roll
-
-
Method Details
-
print
public void print()output matrix to console -
setMatValue
public void setMatValue(int row, int col, float val)Set a single value in matrix- Parameters:
row
- rowcol
- columnval
- value
-
getMatValue
public float getMatValue(int row, int col)Get a single value in matrix- Parameters:
row
- rowcol
- column- Returns:
- value
-
setMat
public void setMat(float[][] mat)Accessor method to set new matrix- Parameters:
mat
- initialization matrix
-
getMat
public void getMat(float[][] mat)Accessor method to get matrix- Parameters:
mat
- array to receive matrix values
-
setMat
Accessor method to set new matrix- Parameters:
mat
- initialization matrix
-
getMat
-
setQuat
Accessor method to set new matrix- Parameters:
quat
- initialization quaternion
-
getQuat
-
setEulers
public void setEulers(float[] hpr) -
getEulers
public void getEulers(float[] hpr) -
setEulers
public void setEulers(float h, float p, float r) -
getEulers
public void getEulers(float[] h, float[] p, float[] r) -
makeNull
public void makeNull() -
makeIdent
public void makeIdent() -
xform
-
xform
public void xform(float[] v)
-