Subversion Repositories gelsvn

Rev

Rev 443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 443 Rev 460
Line 20... Line 20...
20
	OBox(const CGLA::Mat3x3f& _R, const AABox& _aabox):
20
	OBox(const CGLA::Mat3x3f& _R, const AABox& _aabox):
21
		R(_R), aabox(_aabox) {}
21
		R(_R), aabox(_aabox) {}
22
 
22
 
23
	bool intersect(const CGLA::Vec3f&, const CGLA::Vec3f&) const;
23
	bool intersect(const CGLA::Vec3f&, const CGLA::Vec3f&) const;
24
 
24
 
25
	void minmax_sq_dist(const CGLA::Vec3f& p, float& dmin, float& dmax) const;
25
	void minmax_sq_dist(const CGLA::Vec3f& p, float& dmin, float& dmax) const
-
 
26
	{
-
 
27
		aabox.minmax_sq_dist(R * p, dmin, dmax);
-
 
28
	}
-
 
29
	
26
 
30
 
27
	static OBox box_triangle(const Triangle&);
31
	static OBox box_triangle(const Triangle&);
28
 
32
 
29
	static OBox box_and_split(const std::vector<Triangle>& invec,
33
	static OBox box_and_split(const std::vector<Triangle>& invec,
30
														 std::vector<Triangle>& lvec,
34
														 std::vector<Triangle>& lvec,