Examples of pointAt()


Examples of ca.eandb.jmist.math.Ray3.pointAt()

      q = new Point3(halfTableDiag * cost3, halfTableDiag * sint3, 0.0);
      r = new Point3(starPointRadius * cost2, starPointRadius * sint2, 0.0);

      Ray3 ray = new Ray3(r, Vector3.K);
      r = ray.pointAt(planeKite.intersect(ray));

      Plane3 planeStar = Plane3.throughPoints(q, p, r);
      b.slice(planeStar, true);

      p = new Point3(radius * cost2, radius * sint2, -crownHeight);
View Full Code Here

Examples of ca.eandb.jmist.math.Ray3.pointAt()

      b.slice(planeMain, true);

      q = new Point3(radius * cost0, radius * sint0, lowerMainTop);
      r = new Point3(lowerGirdleInner * cost0, lowerGirdleInner * sint0, 0.0);
      ray = new Ray3(r, Vector3.NEGATIVE_K);
      r = ray.pointAt(planeMain.intersect(ray));

      planeGirdle = Plane3.throughPoints(p, q, r);
      b.slice(planeGirdle, true);

      q = new Point3(radius * cost2, radius * sint2, lowerMainTop);
View Full Code Here

Examples of ca.eandb.jmist.math.Ray3.pointAt()

      b.slice(planeGirdle, true);

      q = new Point3(radius * cost2, radius * sint2, lowerMainTop);
      r = new Point3(lowerGirdleInner * cost2, lowerGirdleInner * sint2, 0.0);
      ray = new Ray3(r, Vector3.NEGATIVE_K);
      r = ray.pointAt(planeMain.intersect(ray));
      planeGirdle = Plane3.throughPoints(q, p, r);
      b.slice(planeGirdle, true);

    }

View Full Code Here

Examples of ca.eandb.jmist.math.Ray3.pointAt()

      if (I.isEmpty()) {
        return null;
      }

      Vector3    n    = LENS_SPHERE.center().vectorTo(init.pointAt(I.minimum()));
      Vector3    r    = Optics.reflect(init.direction(), n);

      Ray3    ray    = new Ray3(Point3.ORIGIN, r);
      Color    color  = getWhite();
      double    pdf    = 1.0 / 16.0;
View Full Code Here

Examples of ca.eandb.jmist.math.Ray3.pointAt()

            ia = index;
            indices.add(index);
          } else {
            assert(!splitMap.containsKey(edge));
            Ray3 ray = new Ray3(v1.position, v3.position);
            Point3 p = ray.pointAt(plane.intersect(ray));
            int index = addVertex(p);
            ia = index;
            vertices.get(index).tempInt = -1;
            vertices.get(index).flag = true;
            indices.add(index);
View Full Code Here

Examples of ca.eandb.jmist.math.Ray3.pointAt()

            ia = -1;
            indices.add(index);
          } else {
            assert(!splitMap.containsKey(edge));
            Ray3 ray = new Ray3(v1.position, v2.position);
            Point3 p = ray.pointAt(plane.intersect(ray));
            int index = addVertex(p);
            assert(ia >= 0);
            if (ia < 0) {
              ia = -1;
            }
View Full Code Here

Examples of research.connection.ElbowConnection.pointAt()

        ElbowConnection line = ownerConnection();

        if ((fSegment == 0) || (fSegment == line.pointCount() - 2)){
           return;
        } else {
            Point p1 = line.pointAt(fSegment);
            Point p2 = line.pointAt(fSegment + 1);
            int ddx = x - fLastX;
            int ddy = y - fLastY;

            boolean isStartVertical = true;
View Full Code Here

Examples of research.connection.ElbowConnection.pointAt()

        if ((fSegment == 0) || (fSegment == line.pointCount() - 2)){
           return;
        } else {
            Point p1 = line.pointAt(fSegment);
            Point p2 = line.pointAt(fSegment + 1);
            int ddx = x - fLastX;
            int ddy = y - fLastY;

            boolean isStartVertical = true;
View Full Code Here

Examples of research.connection.ElbowConnection2.pointAt()

    public void invokeStep(InputEvent inputEvent, int x, int y, int anchorX, int anchorY, DrawingView view) {
        ElbowConnection2 line = ownerConnection();

        if (fSegment == 0) {
            if ((inputEvent != null) && (inputEvent.isShiftDown())) {//������ʼ�˵����ӷ�ʽ(H <-> V)
                Point p1 = line.pointAt(fSegment);
                line.insertPointAt(new Point(p1), fSegment + 1);

                int displayMode = ((Integer) line.getAttribute(ElbowConnection2.DISPLAY_MODE)).intValue();

                if (displayMode == ElbowConnection2.V_V_MODE) {
View Full Code Here

Examples of research.connection.ElbowConnection2.pointAt()

                } else {
                    //should not go here
                    System.out.println("ElbowHandle2: should not go here");
                }
            } else {//���ѿ�ʼ��
                Point p1 = line.pointAt(fSegment);
                Point p2 = line.pointAt(fSegment + 1);
                int _x = (p1.x + p2.x) / 2;
                int _y = (p1.y + p2.y) / 2;
                line.insertPointAt(new Point(_x, _y), fSegment + 1);
                line.insertPointAt(new Point(_x, _y), fSegment + 1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.