public bool Contains(CircleCollitionArea collitionArea) { var radius = this.R + collitionArea.R; var deltaX = this.Position.X - collitionArea.Position.X; var deltaY = this.Position.Y - collitionArea.Position.Y; return(deltaX * deltaX + deltaY * deltaY <= radius * radius); }
public bool Contains(CircleCollitionArea collitionArea) { return(collitionArea.Contains(this)); }
public bool Contains(CircleCollitionArea collitionArea, double coneAngle, double angle) { return(CompareAngles(angle, coneAngle, this.Range)); }