Robot.Leg.RotateLeg C# (CSharp) Method

RotateLeg() public static method

public static RotateLeg ( Leg leg, double degrees, double direction, double xCenter, double zCenter ) : void
leg Leg
degrees double
direction double
xCenter double
zCenter double
return void
        public static void RotateLeg(Leg leg, double degrees, double direction,double xCenter,double zCenter)
        {
            double newX;
            double newZ;
            CalculateNewCoordinatesForRotation(leg.RealX, leg.RealZ, xCenter, zCenter, degrees, out newX, out newZ);
            leg.TotRotation = leg.TotRotation + degrees;

            leg.SetRealXYZ(newX, newZ, leg.Y);
        }