Search in sources :

Example 21 with Vector2d

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;
}
Also used : Vector2d(maspack.matrix.Vector2d)

Example 22 with Vector2d

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;
}
Also used : Vector2d(maspack.matrix.Vector2d)

Example 23 with Vector2d

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;
}
Also used : Vector2d(maspack.matrix.Vector2d)

Example 24 with Vector2d

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;
}
Also used : Vector2d(maspack.matrix.Vector2d)

Example 25 with Vector2d

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;
}
Also used : Vector2d(maspack.matrix.Vector2d) Rectangle2d(maspack.geometry.Rectangle2d) VectorNd(maspack.matrix.VectorNd) DoubleInterval(maspack.util.DoubleInterval) Font(java.awt.Font) NumberFormat(maspack.util.NumberFormat)

Aggregations

Vector2d (maspack.matrix.Vector2d)35 Point3d (maspack.matrix.Point3d)16 Vector3d (maspack.matrix.Vector3d)11 Face (maspack.geometry.Face)9 Vertex3d (maspack.geometry.Vertex3d)8 ArrayList (java.util.ArrayList)7 BVFeatureQuery (maspack.geometry.BVFeatureQuery)7 RigidTransform3d (maspack.matrix.RigidTransform3d)6 Point2d (maspack.matrix.Point2d)5 PolygonalMesh (maspack.geometry.PolygonalMesh)4 ContactPoint (artisynth.core.mechmodels.ContactPoint)3 Point (artisynth.core.mechmodels.Point)3 Point (java.awt.Point)3 VectorNd (maspack.matrix.VectorNd)3 PointAttachment (artisynth.core.mechmodels.PointAttachment)2 PointParticleAttachment (artisynth.core.mechmodels.PointParticleAttachment)2 Rectangle (java.awt.Rectangle)2 HashMap (java.util.HashMap)2 BVTree (maspack.geometry.BVTree)2 Matrix2dBase (maspack.matrix.Matrix2dBase)2