public void Add(aShape child) { shapes.Add(child); dimensions = calculateDimensions(); width = (int)dimensions.Y - (int)dimensions.X; height = (int)dimensions.W - (int)dimensions.Z; }
public virtual bool Intersects(aShape iShape) { if ((TopLeft.X > iShape.BottomRight.X) || (BottomRight.X < iShape.TopLeft.X) || (TopLeft.Y > iShape.BottomRight.Y) || (BottomRight.Y < iShape.TopLeft.Y)) { return(false); } return(true); }
public void RemoveShape(aShape shape) { layers[0].Shapes.Remove(shape); }
public void AddShape(aShape shape) { layers[0].Shapes.Add(shape);//TODO: Add to selected layer }
public void Remove(aShape child) { shapes.Remove(child); }