Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Indentation needs fixing #4

Merged
merged 1 commit into from

2 participants

@Poincare
Collaborator

Indentation on nearly all of the source code is off, this patch fixes one of them.

I think the two contributors to the project are using editors with different tab settings; you need to decide on a project common.

@kartikm kartikm merged commit 02d9277 into sixthsense:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 4, 2012
  1. @Poincare

    Fixed indentation

    Poincare authored
This page is out of date. Refresh to see the latest.
Showing with 35 additions and 70 deletions.
  1. +35 −70 WUW01/classes/PointR.cs
View
105 WUW01/classes/PointR.cs
@@ -5,91 +5,56 @@ namespace WUW01
{
public struct PointR
{
- public static readonly PointR Empty;
- //private double _x;
- //private double _y;
- //private int _t;
-
-
- public double X, Y;
- public int T;
-
+ public static readonly PointR Empty;
+ //private double _x;
+ //private double _y;
+ //private int _t;
+
+
+ public double X, Y;
+ public int T;
+
public PointR(double x, double y) : this(x, y, 0)
- {
- }
-
- public PointR(double x, double y, int t)
- {
- //_x = x;
- //_y = y;
- //_t = t;
- X = x;
- Y = y;
- T = t;
- }
-
+ {}
+
+ public PointR(double x, double y, int t)
+ {
+ //_x = x;
+ //_y = y;
+ //_t = t;
+ X = x;
+ Y = y;
+ T = t;
+ }
+
// copy constructor
public PointR(PointR p)
{
- //_x = p.X;
- //_y = p.Y;
- //_t = p.T;
- X = p.X;
- Y = p.Y;
- T = p.T;
- }
-
- //public double X
- //{
- // get
- // {
- // return _x;
- // }
- // set
- // {
- // _x = value;
- // }
- //}
-
- //public double Y
- //{
- // get
- // {
- // return _y;
- // }
- // set
- // {
- // _y = value;
- // }
- //}
-
- //public int T
- //{
- // get
- // {
- // return _t;
- // }
- // set
- // {
- // _t = value;
- // }
- //}
-
+ //_x = p.X;
+ //_y = p.Y;
+ //_t = p.T;
+ X = p.X;
+ Y = p.Y;
+ T = p.T;
+ }
+
+
+
public static explicit operator PointF(PointR p)
{
return new PointF((float) p.X, (float) p.Y);
}
-
+
public static bool operator==(PointR p1, PointR p2)
{
return (p1.X == p2.X && p1.Y == p2.Y);
}
-
+
public static bool operator!=(PointR p1, PointR p2)
{
return (p1.X != p2.X || p1.Y != p2.Y);
}
-
+
public override bool Equals(object obj)
{
if (obj is PointR)
@@ -99,7 +64,7 @@ public override bool Equals(object obj)
}
return false;
}
-
+
public override int GetHashCode()
{
return ((PointF) this).GetHashCode();
Something went wrong with that request. Please try again.