public class Nvg_lite_matrix
extends java.lang.Object
Constructor and Description |
---|
Nvg_lite_matrix() |
Modifier and Type | Method and Description |
---|---|
static int |
copy(int srcHandle,
int destHandle)
Copy matrix parameters from one matrix to an other.
|
static int |
create()
Creates an identity matrix.
|
static int |
destroy(int handle)
Destroy a matrix.
|
static Matrix |
get(int handle)
Get Matrix from handle
|
static int |
identity(int handle)
Load the identity matrix.
|
static int |
rotate(int handle,
float degrees)
Rotate the matrix.
|
static int |
scale(int handle,
float x,
float y)
Scale the matrix in both x and y directions.
|
static int |
translate(int handle,
float x,
float y)
Translate the matrix to a new position.
|
static int |
vg_lite_matrix_perspective(int handle,
float px,
float py)
Set perspective matrix.
|
public static int create()
public static int destroy(int handle)
handle
- matrix to destroy.public static int identity(int handle)
handle
- matrix on which to execute operation.public static int translate(int handle, float x, float y)
handle
- matrix on which to execute operation.x
- X location of the transformation.y
- Y location of the transformation.public static int scale(int handle, float x, float y)
handle
- matrix on which to execute operation.x
- Horizontal scale.y
- Vertical scale.public static int rotate(int handle, float degrees)
handle
- matrix on which to execute operation.degrees
- Number of degrees to rotate the matrix around. Positive numbers rotate counter clock wise.public static int vg_lite_matrix_perspective(int handle, float px, float py)
handle
- matrix on which to execute operation.px
- w0 of perspective transformation matrix.py
- w1 of perspective transformation matrix.public static Matrix get(int handle)
handle
- matrix hanldepublic static int copy(int srcHandle, int destHandle)
srcHandle
- Source matrix handledestHandle
- Destination matrix handle