Permalink
Browse files

Partial port of PointR.cs

  • Loading branch information...
1 parent a97e020 commit 59454fa0c6c3ef80aee4d664e0d4d03851c04fa7 @Poincare committed Apr 24, 2012
Showing with 35 additions and 0 deletions.
  1. +35 −0 sixthsense-java/PointR.java
View
35 sixthsense-java/PointR.java
@@ -0,0 +1,35 @@
+package com.sixthsense;
+
+public class PointR {
+ public double X, Y;
+ public int T;
+
+ public PointR(double X, double Y) {
+ this.X = X;
+ this.Y = Y;
+ this.T = 0;
+ }
+
+ public PointR(double X, double Y, double T) {
+ this.X = X;
+ this.Y = Y;
+ this.T = T;
+ }
+
+ public PointR(PointR p) {
+ X = p.X;
+ Y = p.Y;
+ T = p.T;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if(this == o) {
+ return true;
+ }
+
+ return ((this.X == o.X) && (this.Y == o.Y) && (this.T == o.T));
+ }
+
+
+}

0 comments on commit 59454fa

Please sign in to comment.