|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.math.HermiteDemo
public class HermiteDemo
Performs some simple tests on the Hermite class.
| Field Summary | |
|---|---|
static int |
SEGMENTS
The number of segments to divide the curve into is 10, so the total number of points printed will be 11, including the points for t = 0.0 and t = 1.0. |
| Constructor Summary | |
|---|---|
HermiteDemo()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Creates a start and end point (each with a tangent vector) to plug into a Hermite object. |
static void |
printCurve(Hermite hermite)
Uses the Hermite object to obtain and print interpolated points from parameter t = 0.0 to t = 1.0. |
static void |
printStartAndEndPoints(Point3d p1,
Point3d p2,
Vec3d tan1,
Vec3d tan2)
Prints the start and end points along with their tangents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SEGMENTS
| Constructor Detail |
|---|
public HermiteDemo()
| Method Detail |
|---|
public static void main(String[] args)
public static void printStartAndEndPoints(Point3d p1,
Point3d p2,
Vec3d tan1,
Vec3d tan2)
p1 - the start pointp2 - the end pointtan1 - the tangent of the start point.tan2 - the tangent of the end point.public static void printCurve(Hermite hermite)
hermite - a Hermite object with a start and end point.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||