Class Plane3D
Defined in File plane3d.hpp
Inheritance Relationships
Base Type
public cv::Vec4d
Class Documentation
-
class Plane3D : public cv::Vec4d
class to represent a 2D line as equation a*x + b*y + c = 0 The line has no endpoints
Public Functions
-
Plane3D()
constructor
-
const cv::Vec3d &normal() const
-
void create(const cv::Vec3d &p1, const cv::Vec3d &p2, const cv::Vec3d &p3)
computes the plane equation, based on three points
- Parameters:
p1 –
p2 –
p3 –
-
void create(const cv::Vec3d &p, const cv::Vec3d &n)
computes the plane equation, based a point on the plane and the plane normal
- Parameters:
p – point on the plane
n – plane normal
-
bool intersectionLine(const cv::Vec3d &p1, const cv::Vec3d &p2, cv::Vec3d &intersection, float epsilon = 0.00001) const
Finds a line plane intersection
- Parameters:
p1 – line start
p2 – line end
intersection – intersection point with plane
epsilon – computation tolerance
- Returns:
true if there is an intersection
-
Plane3D()