예제 #1
0
        //Applicato ad un vertice, dice se il vertice sta sul piano dato in input
        public bool Lieonplane(MyPlane GivenPlane)
        {
            double toleranceLieOnPlane = Math.Pow(10, -3);

            return(Math.Abs(GivenPlane.a * this.x + GivenPlane.b * this.y + GivenPlane.c * this.z + GivenPlane.d) < toleranceLieOnPlane);
        }
예제 #2
0
        //Applied to a firstvertex, given secondvertex and a MyPlane, it verifies if secondvertex is the reflected of
        //firstvertex by the given MyPlane
        public bool IsReflectionOf(MyVertex secondVertex, MyPlane reflectionalMyPlane)
        {
            var reflectedVertex = this.Reflect(reflectionalMyPlane);

            return(secondVertex.Equals(reflectedVertex));
        }