|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jass.generators.TubeModel
public class TubeModel
Describes a 1-d tube of varying radius, specified by a bunch of equidistant radii, starting at begin and ending at end. So there is one more radius than segments. Deals with geometry only
Constructor Summary | |
---|---|
TubeModel(int nRadii)
Create tube defined by a set of radii from glottis to lip end. |
Method Summary | |
---|---|
double |
getLength()
Get length (units not specified) |
double |
getRadius(double x)
Get radius at point 0 |
double |
getRadius(int k)
Get the k'th radius |
void |
setLength(double length)
Set the length |
void |
setRadius(int k,
double r)
Set the k'th radius |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TubeModel(int nRadii)
nRadii
- number of segmentsMethod Detail |
---|
public void setLength(double length)
length
- lengthpublic void setRadius(int k, double r)
k
- index of radius (starting at 0)r
- radiuspublic double getRadius(int k)
k
- index of radius (starting at 0)
public double getLength()
getLength
in interface TubeShape
public double getRadius(double x)
getRadius
in interface TubeShape
x
- where to get radius
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |