public Part(double degree, double speed, int variance, Vector2 start, float life) { this.age = 0.0f; this.life = life; this.xmom = GeneralMethods.random.Next(10) <= 5 ? GeneralMethods.getX(speed, GeneralMethods.getAngle(degree + (double)GeneralMethods.random.Next(variance))) : GeneralMethods.getX(speed, GeneralMethods.getAngle(degree - (double)GeneralMethods.random.Next(variance))); this.ymom = GeneralMethods.random.Next(10) <= 5 ? GeneralMethods.getY(speed, GeneralMethods.getAngle(degree + (double)GeneralMethods.random.Next(variance))) : GeneralMethods.getY(speed, GeneralMethods.getAngle(degree - (double)GeneralMethods.random.Next(variance))); this.location = start; }