C++ Java Unity
Java Reference
Tool Class Reference

Detailed Description

Tool functions.

Public Member Functions

boolean equals (Object obj)
 
 Tool ()
 

Static Public Member Functions

static Matrix44F convertPose2GLMatrix (Matrix34F pose)
 Returns a 4x4 col-major OpenGL model-view matrix from a 3x4 Vuforia pose matrix. More...
 
static Matrix44F convert2GLMatrix (Matrix34F matrix34F)
 Returns a 4x4 col-major OpenGL matrix from a 3x4 Vuforia matrix. More...
 
static Matrix44F convertPerspectiveProjection2GLMatrix (Matrix34F projection, float nearPlane, float farPlane)
 Returns a 4x4 col-major OpenGL perspective projection matrix from a 3x4 Vuforia perspective projection matrix. More...
 
static Vec2F projectPoint (CameraCalibration calib, Matrix34F pose, Vec3F point)
 Projects a 3D scene point into the camera image(device coordinates) given a pose in form of a 3x4 matrix. More...
 
static Matrix34F multiply (Matrix34F matLeft, Matrix34F matRight)
 Multiplies two Vuforia pose matrices In order to apply a transformation A on top of a transformation B, perform: multiply(B,A). More...
 
static Matrix44F multiply (Matrix44F matLeft, Matrix44F matRight)
 Multiplies two Vuforia-style 4x4-matrices (row-major order) More...
 
static Vec4F multiply (Vec4F vec, Matrix44F mat)
 Multiplies 1 vector and 1 QCAR-style 4x4-matrix (row-major order) More...
 
static Matrix44F multiplyGL (Matrix44F matLeft, Matrix44F matRight)
 Multiplies two GL-style matrices (col-major order) More...
 
static void setTranslation (Matrix34F pose, Vec3F translation)
 Sets the translation part of a 3x4 pose matrix. More...
 
static void setRotation (Matrix34F pose, Vec3F axis, float angle)
 Sets the rotation part of a 3x4 pose matrix using axis-angle as input The axis parameter defines the 3D axis around which the pose rotates. More...
 

Constructor & Destructor Documentation

Tool ( )

Member Function Documentation

boolean equals ( Object  obj)
static Matrix44F convertPose2GLMatrix ( Matrix34F  pose)
static

Returns a 4x4 col-major OpenGL model-view matrix from a 3x4 Vuforia pose matrix.

Vuforia uses 3x4 row-major matrices for pose data. convertPose2GLMatrix() takes such a pose matrix and returns an OpenGL compatible model-view matrix.

static Matrix44F convert2GLMatrix ( Matrix34F  matrix34F)
static

Returns a 4x4 col-major OpenGL matrix from a 3x4 Vuforia matrix.

Vuforia uses 3x4 row-major matrices. convert2GLMatrix() takes such a matrix and returns an OpenGL compatible matrix.

static Matrix44F convertPerspectiveProjection2GLMatrix ( Matrix34F  projection,
float  nearPlane,
float  farPlane 
)
static

Returns a 4x4 col-major OpenGL perspective projection matrix from a 3x4 Vuforia perspective projection matrix.

Vuforia uses 3x4 row-major matrices for perspective projection data. convertPerspectiveProjection2GLMatrix() takes such a projection matrix and returns an OpenGL compatible projection matrix.

static Vec2F projectPoint ( CameraCalibration  calib,
Matrix34F  pose,
Vec3F  point 
)
static

Projects a 3D scene point into the camera image(device coordinates) given a pose in form of a 3x4 matrix.

The projectPoint() function takes a 3D point in scene coordinates and transforms it using the given pose matrix. It then projects it into the camera image (pixel coordinates) using the given camera calibration. Note that camera coordinates are usually different from screen coordinates, since screen and camera resolution can be different. Transforming from camera to screen coordinates requires another transformation using the settings applied to the Renderer via the VideoBackgroundConfig structure.

static Matrix34F multiply ( Matrix34F  matLeft,
Matrix34F  matRight 
)
static

Multiplies two Vuforia pose matrices In order to apply a transformation A on top of a transformation B, perform: multiply(B,A).

static Matrix44F multiply ( Matrix44F  matLeft,
Matrix44F  matRight 
)
static

Multiplies two Vuforia-style 4x4-matrices (row-major order)

static Vec4F multiply ( Vec4F  vec,
Matrix44F  mat 
)
static

Multiplies 1 vector and 1 QCAR-style 4x4-matrix (row-major order)

static Matrix44F multiplyGL ( Matrix44F  matLeft,
Matrix44F  matRight 
)
static

Multiplies two GL-style matrices (col-major order)

static void setTranslation ( Matrix34F  pose,
Vec3F  translation 
)
static

Sets the translation part of a 3x4 pose matrix.

static void setRotation ( Matrix34F  pose,
Vec3F  axis,
float  angle 
)
static

Sets the rotation part of a 3x4 pose matrix using axis-angle as input The axis parameter defines the 3D axis around which the pose rotates.

The angle parameter defines the angle in degrees for the rotation around that axis.