Public Member Functions | Public Attributes | Private Attributes
wiimote.wiistate.WIIReading Class Reference

List of all members.

Public Member Functions

def __add__
def __div__
def __getitem__
def __init__
def __repr__
def __sub__
def scale
def tuple

Public Attributes


Private Attributes


Detailed Description

Instances hold one 3-D reading.

  [X], [Y], [Z] to obtain respective axis paramters.
  tuple() to obtain x/y/z as a NumPy array.
  +,-,/ to add or subtract readings from each other
      as one vector operation (pairwise for each dimension).

Definition at line 429 of file

Constructor & Destructor Documentation

def wiimote.wiistate.WIIReading.__init__ (   self,
  theTime = None 
Create a (possibly) time stamped WII Reading.

Parameter xyz is an array of x,y,z coordinates of the
reading. WIIReading instances can be added, subtracted, and
divided into each other. The operations are pairwise over
x, y, and z. A numpy array of x,y,z is available by
calling tuple(). The time stamp is available via time().

Definition at line 444 of file

Member Function Documentation

def wiimote.wiistate.WIIReading.__add__ (   self,
Adding two readings returns a numpy tuple with readings added pairwise.

Definition at line 474 of file

def wiimote.wiistate.WIIReading.__div__ (   self,
Dividing two readings returns a numpy tuple with components divided pairwise.

Definition at line 484 of file

def wiimote.wiistate.WIIReading.__getitem__ (   self,

Definition at line 457 of file

Definition at line 468 of file

def wiimote.wiistate.WIIReading.__sub__ (   self,
Subtracting two readings returns a numpy tuple with components subtracted pairwise.

Definition at line 479 of file

def wiimote.wiistate.WIIReading.scale (   self,
Return a numpy tuple that with X, Y, Z scaled by the given factor.

Definition at line 489 of file

Definition at line 471 of file

Member Data Documentation

Definition at line 452 of file

Definition at line 452 of file

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

Author(s): Andreas Paepcke and Melonee Wise
autogenerated on Sat Dec 28 2013 17:06:51