wiiusej.values
Class Orientation

java.lang.Object
  extended by wiiusej.values.Orientation

public class Orientation
extends java.lang.Object

Class that represents the orientation of the wiimote.

Author:
guiguito

Field Summary
private  float a_pitch
           
private  float a_roll
           
private  float pitch
           
private  float roll
           
private  float yaw
           
 
Constructor Summary
Orientation()
          Default constructor.
Orientation(float r, float p, float y, float ar, float ap)
          Contructor with raw, pitch , yaw.
 
Method Summary
 float getAPitch()
          Get absolute pitch (can not be smoothed).
 float getARoll()
          Get absolute roll (can not be smoothed).
 float getPitch()
          Get the pitch (can be smoothed).
 float getRoll()
          Get the roll (can be smoothed).
 float getYaw()
          Get the yaw.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

roll

private float roll

pitch

private float pitch

yaw

private float yaw

a_roll

private float a_roll

a_pitch

private float a_pitch
Constructor Detail

Orientation

public Orientation()
Default constructor.


Orientation

public Orientation(float r,
                   float p,
                   float y,
                   float ar,
                   float ap)
Contructor with raw, pitch , yaw.

Parameters:
r - roll (can be smoothed)
p - pitch (can be smoothed)
y - yaw
ar - absolute roll
ap - absolute pitch
Method Detail

getRoll

public float getRoll()
Get the roll (can be smoothed).

Returns:
the roll

getPitch

public float getPitch()
Get the pitch (can be smoothed).

Returns:
the pitch

getYaw

public float getYaw()
Get the yaw.

Returns:
the yaw

getARoll

public float getARoll()
Get absolute roll (can not be smoothed).

Returns:
the a_roll

getAPitch

public float getAPitch()
Get absolute pitch (can not be smoothed).

Returns:
the a_pitch

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object