void _Load(double x, double y, double radius, double rotation) { center.Set(x, y); this.radius = radius; rot = rotation; LoadCollisionPoints(); }
void _SetEndPoint(double ex, double ey) { aimPos.Set(ex, ey); rightPos.Set(aimPos.X, originPos.Y); oppLen = rightPos.DistanceTo(aimPos); hypLen = originPos.DistanceTo(aimPos); adjLen = originPos.DistanceTo(rightPos); SetRotation(); // endPoint is for testing. endPoint should match aimPos if calculations are correct. //endPoint.X = originPos.X + hypLen * Math.Cos(rotation); //endPoint.Y = originPos.Y + hypLen * Math.Sin(rotation); endPointSet = true; }
void _Load(double x, double y, double radius, double rotation) { center.Set(x, y); this.radius = radius; rot = rotation; }
void _SetStartPoint(double sx, double sy) { originPos.Set(sx, sy); }
protected void Load(double x, double y, double radius, double rotation) { position.Set(x, y); this.radius = radius; this.rotation = rotation; }