Esempio n. 1
0
        public static bool isWest(BuildingObjects.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);
        }
Esempio n. 2
0
        public static bool isNorth(BuildingObjects.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);
        }