Top Description Fields Constructors Methods
com.sun.javafx.geom

public Class Matrix3f

extends Object
Class Inheritance

A single precision floating point 3 by 3 matrix. Primarily to support 3D rotations.

Field Summary

Modifier and TypeField and Description
public float
m00

The first matrix element in the first row.

public float
m01

The second matrix element in the first row.

public float
m02

The third matrix element in the first row.

public float
m10

The first matrix element in the second row.

public float
m11

The second matrix element in the second row.

public float
m12

The third matrix element in the second row.

public float
m20

The first matrix element in the third row.

public float
m21

The second matrix element in the third row.

public float
m22

The third matrix element in the third row.

Constructor Summary

AccessConstructor and Description
public
Matrix3f(float
the [0][0] element
m00
,
float
the [0][1] element
m01
,
float
the [0][2] element
m02
,
float
the [1][0] element
m10
,
float
the [1][1] element
m11
,
float
the [1][2] element
m12
,
float
the [2][0] element
m20
,
float
the [2][1] element
m21
,
float
the [2][2] element
m22
)

Constructs and initializes a Matrix3f from the specified nine values.

public
Matrix3f(float[]
the array of length 9 containing in order
v
)

Constructs and initializes a Matrix3f from the specified nine-element array.

public
Matrix3f(Vec3f[]
the array of length 9 containing in order
v
)

Constructs and initializes a Matrix3f from the specified nine-element array.

public
Matrix3f(Matrix3f
the source matrix
m1
)

Constructs a new matrix with the same values as the Matrix3f parameter.

public
Matrix3f()

Constructs and initializes a Matrix3f to all zeros.

Method Summary

Modifier and TypeMethod and Description
public final void
getRow(int
the matrix row
row
,
Vec3f
the vector into which the matrix row values will be copied
v
)

Copies the matrix values in the specified row into the vector parameter.

public final void
getRow(int
the matrix row
row
,
float[]
the array into which the matrix row values will be copied
v
)

Copies the matrix values in the specified row into the array parameter.

public final void
setIdentity()

Sets this Matrix3f to identity.

public final void
setRow(int
the row number to be modified (zero indexed)
row
,
float[]
the replacement row
v
)

Sets the specified row of this matrix3f to the three values provided.

public final void
setRow(int
the row number to be modified (zero indexed)
row
,
Vec3f
the replacement row
v
)

Sets the specified row of this matrix3f to the Vector provided.

public String

Returns:

the String representation
toString
()

Overrides java.lang.Object.toString.

Returns a string that contains the values of this Matrix3f.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

m00back to summary
public float m00

The first matrix element in the first row.

m01back to summary
public float m01

The second matrix element in the first row.

m02back to summary
public float m02

The third matrix element in the first row.

m10back to summary
public float m10

The first matrix element in the second row.

m11back to summary
public float m11

The second matrix element in the second row.

m12back to summary
public float m12

The third matrix element in the second row.

m20back to summary
public float m20

The first matrix element in the third row.

m21back to summary
public float m21

The second matrix element in the third row.

m22back to summary
public float m22

The third matrix element in the third row.

Constructor Detail

Matrix3fback to summary
public Matrix3f(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)

Constructs and initializes a Matrix3f from the specified nine values.

Parameters
m00:float

the [0][0] element

m01:float

the [0][1] element

m02:float

the [0][2] element

m10:float

the [1][0] element

m11:float

the [1][1] element

m12:float

the [1][2] element

m20:float

the [2][0] element

m21:float

the [2][1] element

m22:float

the [2][2] element

Matrix3fback to summary
public Matrix3f(float[] v)

Constructs and initializes a Matrix3f from the specified nine-element array. this.m00 =v[0], this.m01=v[1], etc.

Parameters
v:float[]

the array of length 9 containing in order

Matrix3fback to summary
public Matrix3f(Vec3f[] v)

Constructs and initializes a Matrix3f from the specified nine-element array. this.m00 =v[0], this.m01=v[1], etc.

Parameters
v:Vec3f[]

the array of length 9 containing in order

Matrix3fback to summary
public Matrix3f(Matrix3f m1)

Constructs a new matrix with the same values as the Matrix3f parameter.

Parameters
m1:Matrix3f

the source matrix

Matrix3fback to summary
public Matrix3f()

Constructs and initializes a Matrix3f to all zeros.

Method Detail

getRowback to summary
public final void getRow(int row, Vec3f v)

Copies the matrix values in the specified row into the vector parameter.

Parameters
row:int

the matrix row

v:Vec3f

the vector into which the matrix row values will be copied

getRowback to summary
public final void getRow(int row, float[] v)

Copies the matrix values in the specified row into the array parameter.

Parameters
row:int

the matrix row

v:float[]

the array into which the matrix row values will be copied

setIdentityback to summary
public final void setIdentity()

Sets this Matrix3f to identity.

setRowback to summary
public final void setRow(int row, float[] v)

Sets the specified row of this matrix3f to the three values provided.

Parameters
row:int

the row number to be modified (zero indexed)

v:float[]

the replacement row

setRowback to summary
public final void setRow(int row, Vec3f v)

Sets the specified row of this matrix3f to the Vector provided.

Parameters
row:int

the row number to be modified (zero indexed)

v:Vec3f

the replacement row

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string that contains the values of this Matrix3f.

Returns:String

the String representation

Annotations
@Override