Example usage for javafx.geometry Point2D ZERO

List of usage examples for javafx.geometry Point2D ZERO

Introduction

In this page you can find the example usage for javafx.geometry Point2D ZERO.

Prototype

Point2D ZERO

To view the source code for javafx.geometry Point2D ZERO.

Click Source Link

Document

Point or vector with both coordinates set to 0.

Usage

From source file:de.pixida.logtest.designer.automaton.BaseNode.java

void moveTo(final Point2D targetPosition) {
    final Point2D oldPosition = Point2D.ZERO.add(this.getPosition()); // Deep copy
    this.setPosition(targetPosition);
    this.processMoveOperation(oldPosition, targetPosition);
}

From source file:server.PokemonRequisition.java

public PokemonRequisition(BlockingQueue<Socket> requisitions, ObservableList<PlayerServer> obsPlayerOnline) {
    requisitioQueue = requisitions;//from   www .ja  v a2 s.  c  o m
    this.obsPlayerOnline = obsPlayerOnline;
    fillQuadtreeTimer = Calendar.getInstance().getTimeInMillis();

    // Carrega mapa
    map.loadMap("main_2.tmx", null);

    quadtree.createTree(new Rectangle(map.getMapWidth(), map.getMapHeight()), Point2D.ZERO);

    map = new Map();
}