Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
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

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  }
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  }
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  }
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  }
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  }
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
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: