From 10d3e55475a4720866af85b53f6bd5830e10897c Mon Sep 17 00:00:00 2001 From: Victor Date: Sat, 22 Feb 2014 14:45:32 +0200 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=20Point?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/annimon/graphics/Point.java | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/com/annimon/graphics/Point.java diff --git a/src/com/annimon/graphics/Point.java b/src/com/annimon/graphics/Point.java new file mode 100644 index 0000000..7c2c83b --- /dev/null +++ b/src/com/annimon/graphics/Point.java @@ -0,0 +1,40 @@ +package com.annimon.graphics; + +/** + * + * @author aNNiMON + */ +public class Point { + + private double x, y; + + public Point() { + x = y = 0; + } + + public Point(double x, double y) { + this.x = x; + this.y = y; + } + + public double getX() { + return x; + } + + public void setX(double x) { + this.x = x; + } + + public double getY() { + return y; + } + + public void setY(double y) { + this.y = y; + } + + public double[] getVector3() { + return new double[] { x, y, 1 }; + } + +}