예제 #1
0
 public DebuggerProxy(angle a)
 {
     radians = (float)a.radians;
 }
예제 #2
0
 /// <summary>Construct a new set of coordinates.</summary>
 public coordinates(double r, double theta)
 {
     this.r     = r;
     this.theta = new angle(theta);
 }
예제 #3
0
 /// <summary>Construct a new set of coordinates.</summary>
 public coordinates(double r, angle theta)
 {
     this.r     = r;
     this.theta = theta;
 }
예제 #4
0
 /// <summary>
 /// Construct a new set of coordinates from a world-space vector.
 /// </summary>
 public coordinates(double2 v)
 {
     this.r     = math.length(v);
     this.theta = new angle(v);
 }