Multiplication.java :  » Game » rugl » com » ryanm » soundgen » imp » Java Open Source

Java Open Source » Game » rugl 
rugl » com » ryanm » soundgen » imp » Multiplication.java

package com.ryanm.soundgen.imp;

import com.ryanm.soundgen.Variable;

/**
 * Multiplies two variables together
 * 
 * @author ryanm
 */
public class Multiplication implements Variable
{
  /**
   * 
   */
  public Variable e;

  /**
   * 
   */
  public Variable f;

  /**
   * @param e
   * @param f
   */
  public Multiplication( Variable e, Variable f )
  {
    this.e = e;
    this.f = f;
  }

  @Override
  public float getValue( float time )
  {
    return e.getValue( time ) * f.getValue( time );
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.