|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Strategy interface requires methods that
return the tangent array for a closed or open Bezier curve
from its vertex array and, if needed, its end tangent data.
| Method Summary | |
float[][] |
makeTangents(float[][] vertex)
Returns the tangent array for a closed Bezier curve corresponding to the given vertex array using the encapsulated vertex-to-tangent strategy. |
float[][] |
makeTangents(float[][] vertex,
float[][] endTangent)
Returns the tangent array for an open Bezier curve corresponding to the given vertex array and the given endTangent data using the encapsulated vertex-to-tangent strategy. |
| Method Detail |
public float[][] makeTangents(float[][] vertex)
Returns the tangent array for a closed Bezier curve corresponding to the given vertex array using the encapsulated vertex-to-tangent strategy.
Precondition: For some integer N >= 0:
null entriesPostcondition: For the same integer N:
null entriesIf the vertex array fails its precondition then the method should return float[0][2].
vertex - the vertex array of a closed curve
public float[][] makeTangents(float[][] vertex,
float[][] endTangent)
Returns the tangent array for an open Bezier curve corresponding to the given vertex array and the given endTangent data using the encapsulated vertex-to-tangent strategy.
Precondition 1. For some integer N >= 0:
null entriesPrecondition 2.
null or
float[2][2] with non-null entriesPostcondition 1. For the same integer N:
null entriesPostcondition 2: If the endTangent array is null,
then the function should return makeTangents(vertex).
Postcondition 3: If the endTangent array is non-null:
tangent[0][i] == endTangent[0][i]tangent[N-1][i] == endTangent[1][i]If the vertex array fails its precondition then the method should return float[0][2].
If the endTangent array fails its precondition then it should be
treated as if it were null.
vertex - the vertex array of an open curveendTangent - the tangent data for the ends of the open curve
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||