Пример #1
0
 public bool IsCoplanarTo(Line line)
 {
     if (!this.Contains(line.Point))
     {
         Plane plane = new Plane(this.point_0, this.point_0 + this.vector3d_0.ToPoint(), line.Point);
         return(plane.Contains(line.Point + line.DirectionVector.ToPoint()));
     }
     if (!this.Contains(line.Point + line.DirectionVector.ToPoint()))
     {
         Plane plane2 = new Plane(this.point_0, this.point_0 + this.vector3d_0.ToPoint(), line.Point + line.DirectionVector.ToPoint());
         return(plane2.Contains(line.Point));
     }
     return(this == line);
 }
Пример #2
0
 public bool IsCoplanarTo(Edge edge)
 {
     if (!this.Contains(edge.EndPoint))
     {
         Plane plane = new Plane(this.point_0, this.point_0 + this.vector3d_0.ToPoint(), edge.EndPoint);
         return(plane.Contains(edge.StartPoint));
     }
     if (!this.Contains(edge.StartPoint))
     {
         Plane plane2 = new Plane(this.point_0, this.point_0 + this.vector3d_0.ToPoint(), edge.StartPoint);
         return(plane2.Contains(edge.EndPoint));
     }
     return(this.Contains(edge));
 }
Пример #3
0
 public bool IsCoplanarTo(Plane plane)
 {
     return(plane.Contains(this));
 }