Exemplo n.º 1
0
        public Perpendicular(Intersection inter) : base(inter.intersect, inter.lhs, inter.rhs)
        {
            // Check if truly perpendicular
            if (lhs.CoordinatePerpendicular(rhs) == null)
            {
                throw new ArgumentException("Intersection is not perpendicular: " + inter.ToString());
            }

            originalInter = inter;
        }
Exemplo n.º 2
0
        public Perpendicular(Intersection inter)
            : base(inter.intersect, inter.lhs, inter.rhs)
        {
            // Check if truly perpendicular
            if (lhs.CoordinatePerpendicular(rhs) == null)
            {
                throw new ArgumentException("Intersection is not perpendicular: " + inter.ToString());
            }

            originalInter = inter;
        }