Java examples for javafx.geometry:Point2D
get Right Angled Vertex for JavaFX
//package com.java2s; import javafx.scene.effect.Light.Point; public class Main { public static Point getRightAngled3Vertex(Point a, Point b, double angle) { double cx = a.getX() + Math.tan(angle) * (-1) * (b.getY() - a.getY()); double cy = a.getY() + Math.tan(angle) * (b.getX() - a.getX()); return new Point(cx, cy, 0, null); }//from w w w .j a va 2 s.c o m }