Empeld
Empeld plugin documentation.
pluginbase.Helpers.Geometry.IntersectableExtensions Class Reference

Containers extensions for IIntersectable to apply to similar types More...

Static Public Member Functions

static bool Intersects (this IIntersectable intersectable, Ray ray)
 
static bool Intersects (this IIntersectable intersectable, Segment segment, out double distance)
 
static bool Intersects (this IIntersectable intersectable, Segment segment)
 
static bool Intersects (this Ray ray, IIntersectable intersectable, out double distance)
 
static bool Intersects (this Ray ray, IIntersectable intersectable)
 
static bool Intersects (this Segment segment, IIntersectable intersectable, out double distance)
 
static bool Intersects (this Segment segment, IIntersectable intersectable)
 

Detailed Description

Containers extensions for IIntersectable to apply to similar types

Member Function Documentation

◆ Intersects() [1/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this IIntersectable  intersectable,
Ray  ray 
)
static
11  {
12  double dist;
13  return intersectable.Intersects(ray, out dist);
14  }

◆ Intersects() [2/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this IIntersectable  intersectable,
Segment  segment,
out double  distance 
)
static
17  {
18  if (intersectable.Intersects(Ray.FromSegment(segment), out distance))
19  {
20  return distance <= segment.Length;
21  }
22  return false;
23  }

◆ Intersects() [3/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this IIntersectable  intersectable,
Segment  segment 
)
static
26  {
27  double distance;
28  if (intersectable.Intersects(Ray.FromSegment(segment), out distance))
29  {
30  return distance <= segment.Length;
31  }
32  return false;
33  }

◆ Intersects() [4/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this Ray  ray,
IIntersectable  intersectable,
out double  distance 
)
static
36  {
37  return intersectable.Intersects(ray, out distance);
38  }

◆ Intersects() [5/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this Ray  ray,
IIntersectable  intersectable 
)
static
41  {
42  double distance;
43  return intersectable.Intersects(ray, out distance);
44  }

◆ Intersects() [6/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this Segment  segment,
IIntersectable  intersectable,
out double  distance 
)
static
47  {
48  return Intersects(intersectable, segment, out distance);
49  }
static bool Intersects(this IIntersectable intersectable, Ray ray)
Definition: IntersectableExtensions.cs:10

◆ Intersects() [7/7]

static bool pluginbase.Helpers.Geometry.IntersectableExtensions.Intersects ( this Segment  segment,
IIntersectable  intersectable 
)
static
52  {
53  return Intersects(intersectable, segment);
54  }
static bool Intersects(this IIntersectable intersectable, Ray ray)
Definition: IntersectableExtensions.cs:10

The documentation for this class was generated from the following file: