|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.geometry.Polyline
public class Polyline
Field Summary | |
---|---|
int |
idx
|
int |
myWorldCoordCnt
|
Constructor Summary | |
---|---|
Polyline(int idx)
Creates an empty polyline with a specified index value. |
Method Summary | |
---|---|
double |
computeLength()
Computes the length of this line. |
int |
getIndex()
Returns the index value for this polyline. |
Vertex3d |
getVertex(int idx)
|
int[] |
getVertexIndices()
|
Vertex3d[] |
getVertices()
|
Point3d |
interpolatePosition(double s)
Interpolate point along polyline |
Vector3d |
interpolateTangent(double s)
Interpolate tangent vector to polyline at specified point |
static void |
main(java.lang.String[] args)
|
int |
numVertices()
|
void |
set(Vertex3d[] vtxs,
int numVtxs)
Creates a line a list of vertices. |
void |
updateBounds(Point3d min,
Point3d max)
|
double |
updateLengths()
Computes the length of this line and per-segment length info. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int idx
public int myWorldCoordCnt
Constructor Detail |
---|
public Polyline(int idx)
idx
- desired index valueMethod Detail |
---|
public int getIndex()
public int[] getVertexIndices()
public void set(Vertex3d[] vtxs, int numVtxs)
vtxs
- vertices to form the linenumVtxs
- number of verticespublic double computeLength()
public double updateLengths()
public Point3d interpolatePosition(double s)
s
- - normalized curve parameter in range [0-1]
public Vector3d interpolateTangent(double s)
s
- - normalized curve parameter in range [0-1]
public void updateBounds(Point3d min, Point3d max)
public int numVertices()
public Vertex3d[] getVertices()
public Vertex3d getVertex(int idx)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |