Exemplo n.º 1
0
        public static bool isWest(BuildingObjects.MemorySafe_OpeningDefinitions opening, double globalAzimuthRotation)
        {
            bool isWest = false;

            //assumes that globalAzimuthRotation is positive counter clockwise
            if (opening.Azimuth + globalAzimuthRotation >= 215 && opening.Azimuth + globalAzimuthRotation < 315)
            {
                isWest = true;
            }
            return(isWest);
        }
Exemplo n.º 2
0
        public static bool isNorth(BuildingObjects.MemorySafe_OpeningDefinitions opening, double globalAzimuthRotation)
        {
            bool isNorth = false;

            //assumes that globalAzimuthRotation is positive counter clockwise
            if (((opening.Azimuth + globalAzimuthRotation) >= 315 && (opening.Azimuth + globalAzimuthRotation) <= 360) ||
                ((opening.Azimuth + globalAzimuthRotation) >= 0 && (opening.Azimuth + globalAzimuthRotation) < 45))
            {
                isNorth = true;
            }
            return(isNorth);
        }