public DataPoint(float x, float y, float z, int ray, int echo) { this.closestPoint = new Point3(x, y,z); this.ccwPoint = new Point3(); this.cwPoint = new Point3(); this.rayNumber = ray; this.echoNumber = echo; this.type = 0; this.isBox = false; }
public DataPoint(float range, float theta) { float y = (float)Math.Sin(theta) * (float)range; float x = (float)Math.Cos(theta) * (float)range; this.closestPoint = new Point3(x, y); this.ccwPoint = new Point3(0, 0); this.cwPoint = new Point3(0, 0); this.rayNumber = 0; this.echoNumber = 0; this.type = 0; this.isBox = false; }
public DataPoint(float range, float theta, float rangeCW, float thetaCW, float rangeCCW, float thetaCCW) { float y = (float)Math.Sin(theta) * (float)range; float x = (float)Math.Cos(theta) * (float)range; float yCW = (float)Math.Sin(thetaCW) * (float)rangeCW; float xCW = (float)Math.Cos(thetaCW) * (float)rangeCW; float yCCW = (float)Math.Sin(thetaCCW) * (float)rangeCCW; float xCCW = (float)Math.Cos(thetaCCW) * (float)rangeCCW; this.closestPoint = new Point3(x, y); this.cwPoint = new Point3(xCW, yCW); this.ccwPoint = new Point3(xCCW, yCCW); this.rayNumber = 0; this.echoNumber = 0; this.type = 0; this.isBox = true; }