public class OsvrMatrixConventionsLibrary
extends java.lang.Object
implements com.sun.jna.Library
Modifier and Type | Class and Description |
---|---|
static interface |
OsvrMatrixConventionsLibrary.OSVR_MatrixMasks
enum values
|
static interface |
OsvrMatrixConventionsLibrary.OSVR_MatrixOrderingFlags
enum values
|
static interface |
OsvrMatrixConventionsLibrary.OSVR_MatrixVectorFlags
enum values
|
static interface |
OsvrMatrixConventionsLibrary.OSVR_ProjectionMatrixInputFlags
enum values
|
static interface |
OsvrMatrixConventionsLibrary.OSVR_ProjectionMatrixZFlags
enum values
|
static class |
OsvrMatrixConventionsLibrary.Scalar |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JNA_LIBRARY_NAME |
static com.sun.jna.NativeLibrary |
JNA_NATIVE_LIB |
static int |
OSVR_MATRIX_SIZE |
static int |
OSVR_RETURN_FAILURE |
static int |
OSVR_RETURN_SUCCESS |
Constructor and Description |
---|
OsvrMatrixConventionsLibrary() |
Modifier and Type | Method and Description |
---|---|
static void |
osvrPose3SetIdentity(OSVR_Pose3 pose)
Set a pose to identity
Original signature : void osvrPose3SetIdentity(OSVR_Pose3*) |
static byte |
osvrPose3ToMatrix(OSVR_Pose3 pose,
short flags,
java.nio.DoubleBuffer mat)
Set a matrix based on a Pose3.
|
static byte |
osvrPose3ToMatrix(OSVR_Pose3 pose,
short flags,
com.sun.jna.ptr.DoubleByReference mat)
Deprecated.
use the safer method
osvrPose3ToMatrix(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.DoubleBuffer)
instead |
static byte |
osvrPose3ToMatrix(OSVR_Pose3 pose,
short flags,
java.nio.FloatBuffer mat)
Set a matrix based on a Pose3.
|
static byte |
osvrPose3ToMatrix(OSVR_Pose3 pose,
short flags,
com.sun.jna.ptr.FloatByReference mat)
Deprecated.
use the safer method
osvrPose3ToMatrix(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.FloatBuffer)
instead |
static byte |
osvrPose3ToMatrix(OSVR_Pose3 pose,
short flags,
OsvrMatrixConventionsLibrary.Scalar[] mat)
Set a matrix based on a Pose3.
|
static byte |
osvrPose3ToMatrix(OSVR_Pose3 pose,
short flags,
com.sun.jna.Pointer mat)
Deprecated.
use the safer method
osvrPose3ToMatrix(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.DoubleBuffer)
instead |
static byte |
osvrPose3ToMatrixd(OSVR_Pose3 pose,
short flags,
java.nio.DoubleBuffer mat)
Set a matrix of doubles based on a Pose3.
|
static byte |
osvrPose3ToMatrixd(OSVR_Pose3 pose,
short flags,
com.sun.jna.ptr.DoubleByReference mat)
Deprecated.
use the safer method
osvrPose3ToMatrixd(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.DoubleBuffer)
instead |
static byte |
osvrPose3ToMatrixf(OSVR_Pose3 pose,
short flags,
java.nio.FloatBuffer mat)
Set a matrix of floats based on a Pose3.
|
static byte |
osvrPose3ToMatrixf(OSVR_Pose3 pose,
short flags,
com.sun.jna.ptr.FloatByReference mat)
Deprecated.
use the safer method
osvrPose3ToMatrixf(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.FloatBuffer)
instead |
static double |
osvrQuatGetW(OSVR_Quaternion q)
Original signature :
double osvrQuatGetW(const OSVR_Quaternion*) |
static double |
osvrQuatGetX(OSVR_Quaternion q)
Original signature :
double osvrQuatGetX(const OSVR_Quaternion*) |
static double |
osvrQuatGetY(OSVR_Quaternion q)
Original signature :
double osvrQuatGetY(const OSVR_Quaternion*) |
static double |
osvrQuatGetZ(OSVR_Quaternion q)
Original signature :
double osvrQuatGetZ(const OSVR_Quaternion*) |
static void |
osvrQuatSetIdentity(OSVR_Quaternion q)
Set a quaternion to the identity rotation
Original signature : void osvrQuatSetIdentity(OSVR_Quaternion*) |
static void |
osvrQuatSetW(OSVR_Quaternion q,
double val)
Original signature :
void osvrQuatSetW(OSVR_Quaternion*, double) |
static void |
osvrQuatSetX(OSVR_Quaternion q,
double val)
Original signature :
void osvrQuatSetX(OSVR_Quaternion*, double) |
static void |
osvrQuatSetY(OSVR_Quaternion q,
double val)
Original signature :
void osvrQuatSetY(OSVR_Quaternion*, double) |
static void |
osvrQuatSetZ(OSVR_Quaternion q,
double val)
Original signature :
void osvrQuatSetZ(OSVR_Quaternion*, double) |
static double |
osvrVec3GetX(OSVR_Vec3 v)
Original signature :
double osvrVec3GetX(const OSVR_Vec3*) |
static double |
osvrVec3GetY(OSVR_Vec3 v)
Original signature :
double osvrVec3GetY(const OSVR_Vec3*) |
static double |
osvrVec3GetZ(OSVR_Vec3 v)
Original signature :
double osvrVec3GetZ(const OSVR_Vec3*) |
static void |
osvrVec3SetX(OSVR_Vec3 v,
double val)
Original signature :
void osvrVec3SetX(OSVR_Vec3*, double) |
static void |
osvrVec3SetY(OSVR_Vec3 v,
double val)
Original signature :
void osvrVec3SetY(OSVR_Vec3*, double) |
static void |
osvrVec3SetZ(OSVR_Vec3 v,
double val)
Original signature :
void osvrVec3SetZ(OSVR_Vec3*, double) |
static void |
osvrVec3Zero(OSVR_Vec3 v)
Set a Vec3 to the zero vector
Original signature : void osvrVec3Zero(OSVR_Vec3*) |
public static final java.lang.String JNA_LIBRARY_NAME
public static final com.sun.jna.NativeLibrary JNA_NATIVE_LIB
public static final int OSVR_MATRIX_SIZE
public static final int OSVR_RETURN_SUCCESS
public static final int OSVR_RETURN_FAILURE
public static double osvrVec3GetX(OSVR_Vec3 v)
double osvrVec3GetX(const OSVR_Vec3*)
public static void osvrVec3SetX(OSVR_Vec3 v, double val)
void osvrVec3SetX(OSVR_Vec3*, double)
public static double osvrVec3GetY(OSVR_Vec3 v)
double osvrVec3GetY(const OSVR_Vec3*)
public static void osvrVec3SetY(OSVR_Vec3 v, double val)
void osvrVec3SetY(OSVR_Vec3*, double)
public static double osvrVec3GetZ(OSVR_Vec3 v)
double osvrVec3GetZ(const OSVR_Vec3*)
public static void osvrVec3SetZ(OSVR_Vec3 v, double val)
void osvrVec3SetZ(OSVR_Vec3*, double)
public static void osvrVec3Zero(OSVR_Vec3 v)
void osvrVec3Zero(OSVR_Vec3*)
public static double osvrQuatGetW(OSVR_Quaternion q)
double osvrQuatGetW(const OSVR_Quaternion*)
public static void osvrQuatSetW(OSVR_Quaternion q, double val)
void osvrQuatSetW(OSVR_Quaternion*, double)
public static double osvrQuatGetX(OSVR_Quaternion q)
double osvrQuatGetX(const OSVR_Quaternion*)
public static void osvrQuatSetX(OSVR_Quaternion q, double val)
void osvrQuatSetX(OSVR_Quaternion*, double)
public static double osvrQuatGetY(OSVR_Quaternion q)
double osvrQuatGetY(const OSVR_Quaternion*)
public static void osvrQuatSetY(OSVR_Quaternion q, double val)
void osvrQuatSetY(OSVR_Quaternion*, double)
public static double osvrQuatGetZ(OSVR_Quaternion q)
double osvrQuatGetZ(const OSVR_Quaternion*)
public static void osvrQuatSetZ(OSVR_Quaternion q, double val)
void osvrQuatSetZ(OSVR_Quaternion*, double)
public static void osvrQuatSetIdentity(OSVR_Quaternion q)
void osvrQuatSetIdentity(OSVR_Quaternion*)
public static void osvrPose3SetIdentity(OSVR_Pose3 pose)
void osvrPose3SetIdentity(OSVR_Pose3*)
@Deprecated public static byte osvrPose3ToMatrixd(OSVR_Pose3 pose, short flags, com.sun.jna.ptr.DoubleByReference mat)
osvrPose3ToMatrixd(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.DoubleBuffer)
insteadpose
- The Pose3 to convertflags
- Memory ordering flag - see @ref MatrixFlagsmat
- an array of 16 doublesOSVR_ReturnCode osvrPose3ToMatrixd(const OSVR_Pose3*, OSVR_MatrixConventions, double*)
public static byte osvrPose3ToMatrixd(OSVR_Pose3 pose, short flags, java.nio.DoubleBuffer mat)
pose
- The Pose3 to convertflags
- Memory ordering flag - see @ref MatrixFlagsmat
- an array of 16 doublesOSVR_ReturnCode osvrPose3ToMatrixd(const OSVR_Pose3*, OSVR_MatrixConventions, double*)
@Deprecated public static byte osvrPose3ToMatrixf(OSVR_Pose3 pose, short flags, com.sun.jna.ptr.FloatByReference mat)
osvrPose3ToMatrixf(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.FloatBuffer)
insteadpose
- The Pose3 to convertflags
- Memory ordering flag - see @ref MatrixFlagsmat
- an array of 16 floatsOSVR_ReturnCode osvrPose3ToMatrixf(const OSVR_Pose3*, OSVR_MatrixConventions, float*)
public static byte osvrPose3ToMatrixf(OSVR_Pose3 pose, short flags, java.nio.FloatBuffer mat)
pose
- The Pose3 to convertflags
- Memory ordering flag - see @ref MatrixFlagsmat
- an array of 16 floatsOSVR_ReturnCode osvrPose3ToMatrixf(const OSVR_Pose3*, OSVR_MatrixConventions, float*)
@Deprecated public static byte osvrPose3ToMatrix(OSVR_Pose3 pose, short flags, com.sun.jna.ptr.DoubleByReference mat)
osvrPose3ToMatrix(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.DoubleBuffer)
insteadOSVR_ReturnCode osvrPose3ToMatrix(const OSVR_Pose3*, OSVR_MatrixConventions, double*)
public static byte osvrPose3ToMatrix(OSVR_Pose3 pose, short flags, java.nio.DoubleBuffer mat)
OSVR_ReturnCode osvrPose3ToMatrix(const OSVR_Pose3*, OSVR_MatrixConventions, double*)
@Deprecated public static byte osvrPose3ToMatrix(OSVR_Pose3 pose, short flags, com.sun.jna.ptr.FloatByReference mat)
osvrPose3ToMatrix(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.FloatBuffer)
insteadOSVR_ReturnCode osvrPose3ToMatrix(const OSVR_Pose3*, OSVR_MatrixConventions, float*)
public static byte osvrPose3ToMatrix(OSVR_Pose3 pose, short flags, java.nio.FloatBuffer mat)
OSVR_ReturnCode osvrPose3ToMatrix(const OSVR_Pose3*, OSVR_MatrixConventions, float*)
@Deprecated public static byte osvrPose3ToMatrix(OSVR_Pose3 pose, short flags, com.sun.jna.Pointer mat)
osvrPose3ToMatrix(com.jme3.system.osvr.osvrmatrixconventions.OSVR_Pose3, short, java.nio.DoubleBuffer)
insteadOSVR_ReturnCode osvrPose3ToMatrix(const OSVR_Pose3*, OSVR_MatrixConventions, Scalar[OSVR_MATRIX_SIZE])
public static byte osvrPose3ToMatrix(OSVR_Pose3 pose, short flags, OsvrMatrixConventionsLibrary.Scalar[] mat)
OSVR_ReturnCode osvrPose3ToMatrix(const OSVR_Pose3*, OSVR_MatrixConventions, Scalar[OSVR_MATRIX_SIZE])