Robot.Leg.CalculateNewPosition C# (CSharp) Method

CalculateNewPosition() public static method

public static CalculateNewPosition ( Leg leg, double distance, double direction, double yDistance ) : void
leg Leg
distance double
direction double
yDistance double
return void
        public static void CalculateNewPosition(Leg leg, double distance, double direction, double yDistance)
        {
            double newX;
            double newZ;

            CalculateXandZ(direction, distance,leg.Side, leg.X, leg.Z, out newX, out newZ);
            leg.SetXYZ(newX, newZ, leg.Y - yDistance);
        }

Same methods

Leg::CalculateNewPosition ( Leg leg, double distance, double directionInRadian ) : void