27 Plane pl(center, ray_p1-center, ray_p2-center);
28 Point2d center_2d = { pl.CoordsX(center), pl.CoordsY(center) };
29 Point2d ray_p1_2d = { pl.CoordsX(ray_p1), pl.CoordsY(ray_p1) };
30 Point2d ray_p2_2d = { pl.CoordsX(ray_p2), pl.CoordsY(ray_p2) };
35 bool b = pos.
Dist() < 100.0;
55 Point pos2 = pl.Navigate(res);
63bool FindRange(
bool b1,
bool b2)
65 if (b1 && !b2)
return true;
66 if (!b1 && b2)
return true;
83 if (level==0)
return range;
94 bool in_this_section1 = FindRange(b1,b2);
95 bool in_this_section2 = FindRange(b3,b4);
96 std::vector<Range<Point> > res;
101 if (in_this_section2)
106 float d = 10000000.0;
152 : p1(p1), p2(p2), p3(p3), p4(p4), dir(dir) { }
Point IntersectionPoint(LinePlaneIntersection &c, Point line_p1, Point line_p2)
Definition Intersect.cc:30
Range< Point > FindSurface(Range< Point > range1, Range< Point > range2, VolumeObject &o, int level)
Definition VectorTools.hh:350
QuadVolumeSpace(VolumeSpace &next, Point p1, Point p2, Point p3, Point p4, Vector dir)
Definition RayTracing.hh:150
Definition Effect.hh:1305
T end
Definition Effect.hh:1310
T start
Definition Effect.hh:1309
Definition RayTracing.hh:8
IntersectPoint Intersect(Point center, float radius, Point ray_p1, Point ray_p2)
Definition VectorTools.hh:125
float Dist() const
Definition VectorTools.cc:141
Definition VolumeObjects.hh:130
virtual bool Inside(Point v) const
Definition VolumeObjects.hh:132
Definition RayTracing.hh:140
virtual float DistanceFromSurface(Point p) const =0
border radius
Definition gameapi_example.php:45
d
Definition meshpage.php:3895
Definition VectorTools.hh:910
float Dist() const
Definition VectorTools.cc:150
Definition RayTracing.hh:11
Point p
Definition RayTracing.hh:12