Examples of y()


Examples of net.machinemuse.numina.geometry.MusePoint2D.y()

            ClickableTinkerSlider slider = new ClickableTinkerSlider(
                    center,
                    border.right() - border.left() - 8,
                    moduleTag, tweak);
            sliders.add(slider);
            if (selectedSlider != null && slider.hitBox(center.x(), center.y())) {
                selectedSlider = slider;
            }
        }
    }
View Full Code Here

Examples of net.shadewind.racetrack.Vector2i.y()

 
  private void checkCrash(Client client)
  {
    Car car = cars.get(client);
    Vector2i position = car.getPosition();
    if (map.getBlockType(position.x(), position.y()) == '#') {
      deactivateClient(client);
      car.setCrashed(true);
      for (Client c : clients)
        c.carCrashed(client.getId());
    }
View Full Code Here

Examples of org.apache.tuscany.sca.test.corba.generated.InnerUnion.y()

            NameComponent nc = new NameComponent(TUSCANY_SERVICE_NAME, "");
            NameComponent path[] = {nc};
            ScenarioSix ref = ScenarioSixHelper.narrow(ncRef.resolve(path));
            RichUnion arg = new RichUnion();
            InnerUnion inner = new InnerUnion();
            inner.y(20f);
            arg.iu(inner);
            RichUnion result = ref.passRichUnion(arg);
            assertEquals(arg.iu().y(), result.iu().y(), 0.0f);
            arg = new RichUnion();
            arg.y(15f);
View Full Code Here

Examples of org.apache.tuscany.sca.test.corba.generated.RichUnion.y()

            RichUnion result = ref.passRichUnion(arg);
            assertEquals(arg.iu().y(), result.iu().y(), 0.0f);
            arg = new RichUnion();
            arg.y(15f);
            result = ref.passRichUnion(arg);
            assertEquals(arg.y(), result.y(), 0.0f);
        } catch (Exception e) {
            e.printStackTrace();
            fail();
        }
    }
View Full Code Here

Examples of org.gephi.graph.api.Node.y()

        //Edge size
        float arrowWidth = ARROW_WIDTH * w * 2f;
        float arrowHeight = ARROW_HEIGHT * w * 2f;

        float x2 = nodeTo.x();
        float y2 = nodeTo.y();
        float x1 = nodeFrom.x();
        float y1 = nodeFrom.y();

        //Edge vector
        Vec2f edgeVector = new Vec2f(x2 - x1, y2 - y1);
View Full Code Here

Examples of org.gephi.graph.api.NodeData.y()

            if (nodeFrom.x() < centerX) {
                index1 += 1;
            }
        }

        if (!(Math.abs(nodeTo.x() - centerX) > size || Math.abs(nodeTo.y() - centerY) > size || Math.abs(nodeTo.z() - centerZ) > size)) {
            index2 = 0;

            //Point2
            if (nodeTo.y() < centerY) {
                index2 += 4;
View Full Code Here

Examples of org.gephi.graph.api.NodeData.y()

        if (!(Math.abs(nodeTo.x() - centerX) > size || Math.abs(nodeTo.y() - centerY) > size || Math.abs(nodeTo.z() - centerZ) > size)) {
            index2 = 0;

            //Point2
            if (nodeTo.y() < centerY) {
                index2 += 4;
            }
            if (nodeTo.z() > centerZ) {
                index2 += 2;
            }
View Full Code Here

Examples of org.gephi.graph.api.NodeData.y()

        int len = 0;
        for (int i = 0; i < n.length; i++) {
            NodeData nd = n[i].getNodeData();
            models[i] = (ModelImpl) nd.getModel();
            cenX += nd.x();
            cenY += nd.y();
            len++;
        }
        centroidX = cenX / len;
        centroidY = cenY / len;
        return models;
View Full Code Here

Examples of org.gephi.graph.api.NodeData.y()

        for (Node node : graph.getNodes()) {
            NodeData nodeData = node.getNodeData();
            minX = Math.min(minX, nodeData.x());
            maxX = Math.max(maxX, nodeData.x());
            minY = Math.min(minY, nodeData.y());
            maxY = Math.max(maxY, nodeData.y());
            minZ = Math.min(minZ, nodeData.z());
            maxZ = Math.max(maxZ, nodeData.z());
            minSize = Math.min(minSize, nodeData.getSize());
            maxSize = Math.max(maxSize, nodeData.getSize());
View Full Code Here

Examples of org.gephi.graph.api.NodeData.y()

        for (Node node : graph.getNodes()) {
            NodeData nodeData = node.getNodeData();
            minX = Math.min(minX, nodeData.x());
            maxX = Math.max(maxX, nodeData.x());
            minY = Math.min(minY, nodeData.y());
            maxY = Math.max(maxY, nodeData.y());
            minZ = Math.min(minZ, nodeData.z());
            maxZ = Math.max(maxZ, nodeData.z());
            minSize = Math.min(minSize, nodeData.getSize());
            maxSize = Math.max(maxSize, nodeData.getSize());
        }
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.