FROG

FROG Recognizer of Gestures

Accel3D Class Reference

The basic unit FROG works on. More...

Inherits java::io::Serializable, java::io::Serializable, and java::io::Serializable.

List of all members.

Public Member Functions

 Accel3D (double x, double y, double z)
 Creates a new Accel3D containing the given axis values.
void add (Accel3D other)
 Performs vector addition on this object using another Accel3D object.
double distanceFrom (Accel3D other)
 Finds the distance between this Accel3D and another.
double getMagnitude ()
 Gets the vector magnitude of this Accel3D.
double getX ()
 Gets acceleration (in G's) of the X axis.
double getY ()
 Gets acceleration (in G's) of the Y axis.
double getZ ()
 Gets acceleration (in G's) of the Z axis.
void rescale (double scaleFactor)
 Scales the X, Y, and Z values to a given scale value.
double[] toArray ()
 Returns the Accel3D converted to an array (double[3]).
String toString ()
 Returns a String representation of this object.
 Accel3D (double x, double y, double z)
 Creates a new Accel3D containing the given axis values.
void add (Accel3D other)
 Performs vector addition on this object using another Accel3D object.
double distanceFrom (Accel3D other)
 Finds the distance between this Accel3D and another.
double getMagnitude ()
 Gets the vector magnitude of this Accel3D.
double getX ()
 Gets acceleration (in G's) of the X axis.
double getY ()
 Gets acceleration (in G's) of the Y axis.
double getZ ()
 Gets acceleration (in G's) of the Z axis.
void rescale (double scaleFactor)
 Scales the X, Y, and Z values to a given scale value.
double[] toArray ()
 Returns the Accel3D converted to an array (double[3]).
String toString ()
 Returns a String representation of this object.
 Accel3D (double x, double y, double z)
 Creates a new Accel3D containing the given axis values.
void add (Accel3D other)
 Performs vector addition on this object using another Accel3D object.
double distanceFrom (Accel3D other)
 Finds the distance between this Accel3D and another.
double getMagnitude ()
 Gets the vector magnitude of this Accel3D.
double getX ()
 Gets acceleration (in G's) of the X axis.
double getY ()
 Gets acceleration (in G's) of the Y axis.
double getZ ()
 Gets acceleration (in G's) of the Z axis.
void rescale (double scaleFactor)
 Scales the X, Y, and Z values to a given scale value.
double[] toArray ()
 Returns the Accel3D converted to an array (double[3]).
String toString ()
 Returns a String representation of this object.

Detailed Description

The basic unit FROG works on.

Accel3D objects contain a single sampling of a device's accelerometers. They also contain helpful methods to manipulate that data.

Author:
Team Better Recognize

Constructor & Destructor Documentation

Accel3D ( double  x,
double  y,
double  z 
)

Creates a new Accel3D containing the given axis values.

Parameters:
x the acceleration in the x-direction (in G's)
y the acceleration in the y-direction (in G's)
z the acceleration in the z-direction (in G's)
Accel3D ( double  x,
double  y,
double  z 
)

Creates a new Accel3D containing the given axis values.

Parameters:
x the acceleration in the x-direction (in G's)
y the acceleration in the y-direction (in G's)
z the acceleration in the z-direction (in G's)
Accel3D ( double  x,
double  y,
double  z 
)

Creates a new Accel3D containing the given axis values.

Parameters:
x the acceleration in the x-direction (in G's)
y the acceleration in the y-direction (in G's)
z the acceleration in the z-direction (in G's)

Member Function Documentation

void add ( Accel3D  other  ) 

Performs vector addition on this object using another Accel3D object.

The result is stored back in this Accel3D.

Parameters:
other another Accel3D to add to this Accel3D

Here is the call graph for this function:

void add ( Accel3D  other  ) 

Performs vector addition on this object using another Accel3D object.

The result is stored back in this Accel3D.

Parameters:
other another Accel3D to add to this Accel3D

Here is the call graph for this function:

void add ( Accel3D  other  ) 

Performs vector addition on this object using another Accel3D object.

The result is stored back in this Accel3D.

Parameters:
other another Accel3D to add to this Accel3D

Here is the call graph for this function:

double distanceFrom ( Accel3D  other  ) 

Finds the distance between this Accel3D and another.

Parameters:
other an Accel3D to compare with
Returns:
the distance of this acceleration vector from the input

Here is the call graph for this function:

double distanceFrom ( Accel3D  other  ) 

Finds the distance between this Accel3D and another.

Parameters:
other an Accel3D to compare with
Returns:
the distance of this acceleration vector from the input

Here is the call graph for this function:

double distanceFrom ( Accel3D  other  ) 

Finds the distance between this Accel3D and another.

Parameters:
other an Accel3D to compare with
Returns:
the distance of this acceleration vector from the input

Here is the call graph for this function:

double getMagnitude (  ) 

Gets the vector magnitude of this Accel3D.

Returns:
the magnitude of the acceleration vector
double getMagnitude (  ) 

Gets the vector magnitude of this Accel3D.

Returns:
the magnitude of the acceleration vector
double getMagnitude (  ) 

Gets the vector magnitude of this Accel3D.

Returns:
the magnitude of the acceleration vector

Here is the caller graph for this function:

double getX (  ) 

Gets acceleration (in G's) of the X axis.

Returns:
the acceleration in the x-direction
double getX (  ) 

Gets acceleration (in G's) of the X axis.

Returns:
the acceleration in the x-direction
double getX (  ) 

Gets acceleration (in G's) of the X axis.

Returns:
the acceleration in the x-direction

Here is the caller graph for this function:

double getY (  ) 

Gets acceleration (in G's) of the Y axis.

Returns:
the acceleration in the y-direction
double getY (  ) 

Gets acceleration (in G's) of the Y axis.

Returns:
the acceleration in the y-direction
double getY (  ) 

Gets acceleration (in G's) of the Y axis.

Returns:
the acceleration in the y-direction

Here is the caller graph for this function:

double getZ (  ) 

Gets acceleration (in G's) of the Z axis.

Returns:
the acceleration in the z-direction
double getZ (  ) 

Gets acceleration (in G's) of the Z axis.

Returns:
the acceleration in the z-direction
double getZ (  ) 

Gets acceleration (in G's) of the Z axis.

Returns:
the acceleration in the z-direction

Here is the caller graph for this function:

void rescale ( double  scaleFactor  ) 

Scales the X, Y, and Z values to a given scale value.

Parameters:
scaleFactor amount to scale by; if 1.0, this vector remains unchanged
void rescale ( double  scaleFactor  ) 

Scales the X, Y, and Z values to a given scale value.

Parameters:
scaleFactor amount to scale by; if 1.0, this vector remains unchanged
void rescale ( double  scaleFactor  ) 

Scales the X, Y, and Z values to a given scale value.

Parameters:
scaleFactor amount to scale by; if 1.0, this vector remains unchanged
double [] toArray (  ) 

Returns the Accel3D converted to an array (double[3]).

Returns:
this Accel3D in the form of {x, y, z}
double [] toArray (  ) 

Returns the Accel3D converted to an array (double[3]).

Returns:
this Accel3D in the form of {x, y, z}
double [] toArray (  ) 

Returns the Accel3D converted to an array (double[3]).

Returns:
this Accel3D in the form of {x, y, z}

Here is the caller graph for this function:

String toString (  ) 

Returns a String representation of this object.

Returns:
this Accel3D in the form of "(x, y, z)"
String toString (  ) 

Returns a String representation of this object.

Returns:
this Accel3D in the form of "(x, y, z)"
String toString (  ) 

Returns a String representation of this object.

Returns:
this Accel3D in the form of "(x, y, z)"

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FilterTest/src/Accel3D.java
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/KmeansTest/src/Accel3D.java
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/KmeansTestRandom/src/Accel3D.java
 All Classes Namespaces Files Functions Variables