Spirograph Problem Set Javadocs

spirograph
Interface Accelerator

All Known Implementing Classes:
BshAccel, Dummy

public interface Accelerator

This class has probably drifted from it's intent, and might be better named Mover. Objects implementing this interface can receive position and velocity information and generate a double. This value is usually inserted into the next iteration of a motion equations.

Copyright (C) 1998 Massachusetts Institute of Technology.
Copyright © 2002-2003 Franklin W. Olin College of Engineering.

Version:
$Id: Accelerator.java,v 1.3 2004/02/09 20:55:03 gus Exp $
Author:
Luis Sarmenta, lfgs@cag.lcs.mit.edu, Henry Wong, henryw@mit.edu, Patrick G Heck, gus.heck@olin.edu

Method Summary
 double act(double pos, double vel, double otherPos, double otherVel, double maxPos)
          Calculate a new motion related value from position and velocity information.
 

Method Detail

act

public double act(double pos,
                  double vel,
                  double otherPos,
                  double otherVel,
                  double maxPos)
Calculate a new motion related value from position and velocity information. Usually this value represents, position, acceleration, or velocity.

Parameters:
pos - Current position on this axis
vel - Current velocity on this axis
otherPos - Current position on the other axis
otherVel - Current Velocity on the other axis
maxPos - The maximum position on this axis (+ or -)
Returns:
The new value

Spirograph Problem Set Javadocs