public WrapperRectangle(RectangleBlock rblock) { this.rblock = rblock; lines = new ILine[4]; for (int i = 0; i < lines.Length; i++) { lines[i] = new WrapperLine(rblock, i); } }
public WrapperLine(RectangleBlock rect) : this(rect, 0) { }
public WrapperLine(RectangleBlock rect, int side) { this.wrapObj = rect; this.side = side; start = new Vector2(); end = new Vector2(); Sync(); }
public RectangleCollisionDetector(RectangleBlock dgo) { this.dgo = dgo; this.myShape = dgo.Shape as IRectangle; lineDetectors = new LineCollisionDetector[4]; for (int i = 0; i < lineDetectors.Length; i++) { lineDetectors[i] = new LineCollisionDetector(dgo, myShape.Lines[0]); } }