VR-Link JAVA API Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
com.mak.vrlj.math.Quaternion Class Reference

Quaternion. More...

+ Inheritance diagram for com.mak.vrlj.math.Quaternion:
+ Collaboration diagram for com.mak.vrlj.math.Quaternion:

Public Member Functions

 Quaternion ()
 No-arg constructor. More...
 
 Quaternion (ConstQuaternion other)
 Copy constructor. More...
 
 Quaternion (double px, double py, double pz, double pw)
 Construct from primitives. More...
 
void assignFrom (ConstQuaternion other)
 Assign this from another. More...
 
boolean equals (Object obj)
 
double getW ()
 
double getX ()
 
double getY ()
 
double getZ ()
 
int hashCode ()
 
void setW (double pw)
 
void setX (double px)
 
void setY (double py)
 
void setZ (double pz)
 
String toString ()
 

Static Public Attributes

static final Quaternion zero = new Quaternion(0, 0, 0, 0)
 A quaterion with all zero components. More...
 
static final Quaternion identity = new Quaternion(1, 0, 0, 0)
 A quaterion representing an identity. More...
 
static final Quaternion wAxis = new Quaternion(1, 0, 0, 0)
 A quaterion representing the W axis. More...
 
static final Quaternion xAxis = new Quaternion(0, 1, 0, 0)
 A quaterion representing the X axis. More...
 
static final Quaternion yAxis = new Quaternion(0, 0, 1, 0)
 A quaterion representing the Y axis. More...
 
static final Quaternion zAxis = new Quaternion(0, 0, 0, 1)
 A quaterion representing the Z axis. More...
 

Private Attributes

double x
 
double y
 
double z
 
double w
 

Detailed Description

Quaternion.

Constructor & Destructor Documentation

com.mak.vrlj.math.Quaternion.Quaternion ( )
inline

No-arg constructor.

Referenced by com.mak.vrlj.math.Quaternion.equals().

com.mak.vrlj.math.Quaternion.Quaternion ( ConstQuaternion  other)
inline
com.mak.vrlj.math.Quaternion.Quaternion ( double  px,
double  py,
double  pz,
double  pw 
)
inline

Member Function Documentation

void com.mak.vrlj.math.Quaternion.assignFrom ( ConstQuaternion  other)
inline

Assign this from another.

Parameters
othersource for assignment.

References com.mak.vrlj.math.Quaternion.w, com.mak.vrlj.math.Quaternion.x, com.mak.vrlj.math.Quaternion.y, and com.mak.vrlj.math.Quaternion.z.

boolean com.mak.vrlj.math.Quaternion.equals ( Object  obj)
inline
double com.mak.vrlj.math.Quaternion.getW ( )
inlinevirtual
double com.mak.vrlj.math.Quaternion.getX ( )
inlinevirtual
double com.mak.vrlj.math.Quaternion.getY ( )
inlinevirtual
double com.mak.vrlj.math.Quaternion.getZ ( )
inlinevirtual
int com.mak.vrlj.math.Quaternion.hashCode ( )
inline
void com.mak.vrlj.math.Quaternion.setW ( double  pw)
inline
Parameters
pwthe w to set

References com.mak.vrlj.math.Quaternion.w.

void com.mak.vrlj.math.Quaternion.setX ( double  px)
inline
Parameters
pxthe x to set

References com.mak.vrlj.math.Quaternion.x.

void com.mak.vrlj.math.Quaternion.setY ( double  py)
inline
Parameters
pythe y to set

References com.mak.vrlj.math.Quaternion.y.

void com.mak.vrlj.math.Quaternion.setZ ( double  pz)
inline
Parameters
pzthe z to set

References com.mak.vrlj.math.Quaternion.z.

String com.mak.vrlj.math.Quaternion.toString ( )
inline

Member Data Documentation

final Quaternion com.mak.vrlj.math.Quaternion.identity = new Quaternion(1, 0, 0, 0)
static

A quaterion representing an identity.

double com.mak.vrlj.math.Quaternion.w
private
final Quaternion com.mak.vrlj.math.Quaternion.wAxis = new Quaternion(1, 0, 0, 0)
static

A quaterion representing the W axis.

double com.mak.vrlj.math.Quaternion.x
private
final Quaternion com.mak.vrlj.math.Quaternion.xAxis = new Quaternion(0, 1, 0, 0)
static

A quaterion representing the X axis.

double com.mak.vrlj.math.Quaternion.y
private
final Quaternion com.mak.vrlj.math.Quaternion.yAxis = new Quaternion(0, 0, 1, 0)
static

A quaterion representing the Y axis.

double com.mak.vrlj.math.Quaternion.z
private
final Quaternion com.mak.vrlj.math.Quaternion.zAxis = new Quaternion(0, 0, 0, 1)
static

A quaterion representing the Z axis.

final Quaternion com.mak.vrlj.math.Quaternion.zero = new Quaternion(0, 0, 0, 0)
static

A quaterion with all zero components.


The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)