Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Partial port of PointR.cs

  • Loading branch information...
commit 59454fa0c6c3ef80aee4d664e0d4d03851c04fa7 1 parent a97e020
Dhaivat Pandya authored
Showing with 35 additions and 0 deletions.
  1. +35 −0 sixthsense-java/PointR.java
35 sixthsense-java/PointR.java
View
@@ -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));
+ }
+
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.