use of maspack.matrix.Vector2d in project artisynth_core by artisynth.
the class TriPlaneIntersection method getFaceCoords.
public Vector2d[] getFaceCoords() {
if (faceCoords == null) {
// compute coords
faceCoords = new Vector2d[points.length];
for (int i = 0; i < faceCoords.length; i++) {
faceCoords[i] = new Vector2d();
face.computeCoords(points[i], faceCoords[i]);
}
}
return faceCoords;
}
use of maspack.matrix.Vector2d in project artisynth_core by artisynth.
the class TriTriIntersection method getFace0Coords.
public Vector2d[] getFace0Coords() {
// compute coords
Vector2d[] faceCoords = new Vector2d[points.length];
for (int i = 0; i < faceCoords.length; i++) {
faceCoords[i] = new Vector2d();
face0.computeCoords(points[i], faceCoords[i]);
}
return faceCoords;
}
use of maspack.matrix.Vector2d in project artisynth_core by artisynth.
the class TriTriIntersection method getFace1Coords.
public Vector2d[] getFace1Coords() {
// compute coords
Vector2d[] faceCoords = new Vector2d[points.length];
for (int i = 0; i < faceCoords.length; i++) {
faceCoords[i] = new Vector2d();
face1.computeCoords(points[i], faceCoords[i]);
}
return faceCoords;
}
use of maspack.matrix.Vector2d in project artisynth_core by artisynth.
the class TriLineIntersection method getFaceCoords.
public Vector2d[] getFaceCoords() {
if (faceCoords == null) {
// compute coords
faceCoords = new Vector2d[points.length];
for (int i = 0; i < faceCoords.length; i++) {
faceCoords[i] = new Vector2d();
face.computeCoords(points[i], faceCoords[i]);
}
}
return faceCoords;
}
use of maspack.matrix.Vector2d in project artisynth_core by artisynth.
the class ColorBar method setDefaults.
@Override
protected void setDefaults() {
setFont(new Font(defaultFontName, 0, defaultFontSize));
myRenderProps = createDefaultRenderProps();
hAlignment = defaultHAlignment;
vAlignment = defaultVAlignment;
myTextSize = defaultTextSize;
myFontSize = defaultFontSize;
myLoc = new Rectangle2d(defaultLoc);
myColorMap = defaultColorMap;
myValueRange = new DoubleInterval(defaultInterval);
nBarDivisions = defaultBarDivisions;
myTickFractions = new Vector2d(defaultTickFraction);
myLabelPos = new VectorNd(0);
myLabelText = new ArrayList<String>();
myTextOffset = new Vector2d(defaultTextOffset);
myNumberFormat = new NumberFormat(defaultNumberFormat);
myRenderObject = null;
myRenderObjectRebuildRequest = true;
}
Aggregations