public bool IsSatisfiedBy(ENT_Sender_GRBL.Circle entity)
        {
            double maxSideX     = double.Parse(ConfigurationManager.AppSettings["MAX_AXIS_X_mm"]);
            bool   xSideIsValid = LineValidation.IsValid(entity.Radio, entity.Center.X, maxSideX);

            if (xSideIsValid)
            {
                double maxSideY = double.Parse(ConfigurationManager.AppSettings["MAX_AXIS_Y_mm"]);
                return(LineValidation.IsValid(entity.Radio, entity.Center.Y, maxSideY));
            }

            return(false);
        }
        public bool IsSatisfiedBy(ENT_Sender_GRBL.Triangle entity)
        {
            double maxAxisX = double.Parse(ConfigurationManager.AppSettings["MAX_AXIS_X_mm"]);

            return(LineValidation.IsValid(entity.Base, entity.Start.X, maxAxisX));
        }
예제 #3
0
        public bool IsSatisfiedBy(ENT_Sender_GRBL.Rectangle entity)
        {
            double maxAxisY = double.Parse(ConfigurationManager.AppSettings["MAX_AXIS_Y_mm"]);

            return(LineValidation.IsValid(entity.Height, entity.Start.Y, maxAxisY));
        }
예제 #4
0
        public bool IsSatisfiedBy(ENT_Sender_GRBL.Square entity)
        {
            double max = double.Parse(ConfigurationManager.AppSettings["MAX_AXIS_Z_mm"]);

            return(LineValidation.IsValid(entity.SafetyHeightZ, entity.Start.Z, max));
        }
예제 #5
0
        public bool IsSatisfiedBy(ENT_Sender_GRBL.Square entity)
        {
            double maxSide = double.Parse(ConfigurationManager.AppSettings["MAX_AXIS_Y_mm"]);

            return(LineValidation.IsValid(entity.Side, entity.Start.X, maxSide));
        }