Beispiel #1
0
        public override bool IsElement(Point2D point)
        {
            if (DirectionVector.Equals(Vector2D.NullVector))
            {
                return(PositionVector.Equals(point));
            }

            Vector2D vec = point - PositionVector / DirectionVector;

            return(vec.X == vec.Y);
        }
Beispiel #2
0
        public override bool IsElement(Point3D point)
        {
            if (DirectionVector.Equals(Vector3D.NullVector))
            {
                return(PositionVector.Equals((Vector3D)point));
            }

            Vector3D vec = point - PositionVector;

            vec = vec / DirectionVector;

            return(vec.EqualsXY() || vec.EqualsXZ() || vec.EqualsYZ());
        }