jass.generators
Class ModalObject.Contact

java.lang.Object
  extended by jass.generators.ModalObject.Contact
Enclosing class:
ModalObject

public class ModalObject.Contact
extends java.lang.Object

Represents contact with location in barycentric coordinates.


Field Summary
 float[] ampR
          Reson filter gain vector.
 float b1
          Current barycentric coordinates of location.
 float b2
          Current barycentric coordinates of location.
 float b3
          Current barycentric coordinates of location.
 boolean isOn
          State of contact
 int p1
          Current barycentric location points.
 int p2
          Current barycentric location points.
 int p3
          Current barycentric location points.
 
Constructor Summary
ModalObject.Contact()
          Constructor, allocates nmodes.
 
Method Summary
 void computeLocation()
          Compute gains of contact
 void setLocation(int p1, int p2, int p3, float b1, float b2, float b3)
          Compute the gain coefficients from the modal model parameters at point p, given inside triangle of point p1,p2,p3, with barycentric coordinated b1,b2,b3
 void start()
          Turn on.
 void stop()
          Turn off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isOn

public boolean isOn
State of contact


p1

public int p1
Current barycentric location points.


p2

public int p2
Current barycentric location points.


p3

public int p3
Current barycentric location points.


b1

public float b1
Current barycentric coordinates of location.


b2

public float b2
Current barycentric coordinates of location.


b3

public float b3
Current barycentric coordinates of location.


ampR

public float[] ampR
Reson filter gain vector.

Constructor Detail

ModalObject.Contact

public ModalObject.Contact()
Constructor, allocates nmodes.

Parameters:
af - audio force of Contact.
nf - number of modes.
Method Detail

start

public void start()
Turn on.


stop

public void stop()
Turn off.


setLocation

public void setLocation(int p1,
                        int p2,
                        int p3,
                        float b1,
                        float b2,
                        float b3)
Compute the gain coefficients from the modal model parameters at point p, given inside triangle of point p1,p2,p3, with barycentric coordinated b1,b2,b3

Parameters:
p1 - location index 1.
p2 - location index 2.
p3 - location index 3.
b1 - barycentric coordinate 1.
b2 - barycentric coordinate 2.
b3 - barycentric coordinate 3.

computeLocation

public void computeLocation()
Compute gains of contact