|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjass.generators.ModalObject.Contact
public class ModalObject.Contact
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 |
---|
public boolean isOn
public int p1
public int p2
public int p3
public float b1
public float b2
public float b3
public float[] ampR
Constructor Detail |
---|
public ModalObject.Contact()
af
- audio force of Contact.nf
- number of modes.Method Detail |
---|
public void start()
public void stop()
public void setLocation(int p1, int p2, int p3, float b1, float b2, float b3)
p1
- location index 1.p2
- location index 2.p3
- location index 3.b1
- barycentric coordinate 1.b2
- barycentric coordinate 2.b3
- barycentric coordinate 3.public void computeLocation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |