Exemplo n.º 1
0
        public bool MoveRef()
        {
            var _ref     = HelperRead.InputDataRef();
            var diagonal = Math.Sqrt(Math.Pow(_ref.Width, 2) + Math.Pow(_ref.Length, 2));

            return(diameter > diagonal);
        }
Exemplo n.º 2
0
        public bool MoveSphere()
        {
            var sphere = HelperRead.InputDataSphere();

            if (this.diameter > sphere.Diameter)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 3
0
        public bool MoveCylinder()
        {
            var cyl = HelperRead.InputDataCyl();

            if (cyl.Diameter < this.diameter)
            {
                return(true);
            }
            else if (this.diameter > cyl.Height && this.diameter > cyl.Diameter)
            {
                return(true);
            }

            return(false);
        }