Class Line3D
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
A 3-dimensional line object
public class Line3D
- Inheritance
-
Line3D
- Inherited Members
Constructors
Line3D(double, double, double, double, double, double)
Initializes this object
public Line3D(double vx, double vy, double vz, double x1, double y1, double z1)
Parameters
vxdoubleThe X component of the normalized vector collinear to the line
vydoubleThe Y component of the normalized vector collinear to the line
vzdoubleThe Z component of the normalized vector collinear to the line
x1doubleZ-coordinate of some point on the line
y1doubleZ-coordinate of some point on the line
z1doubleZ-coordinate of some point on the line
Line3D(float[])
Initializes by cvFitLine output
public Line3D(float[] line)
Parameters
linefloat[]The returned value from cvFitLine
Properties
Vx
The X component of the normalized vector collinear to the line
public double Vx { get; }
Property Value
Vy
The Y component of the normalized vector collinear to the line
public double Vy { get; }
Property Value
Vz
The Z component of the normalized vector collinear to the line
public double Vz { get; }
Property Value
X1
X-coordinate of some point on the line
public double X1 { get; }
Property Value
Y1
Y-coordinate of some point on the line
public double Y1 { get; }
Property Value
Z1
Z-coordinate of some point on the line
public double Z1 { get; }
Property Value
Methods
Distance(Point3d)
Returns the distance between this line and the specified point
public double Distance(Point3d point)
Parameters
pointPoint3d
Returns
Distance(Point3f)
Returns the distance between this line and the specified point
public double Distance(Point3f point)
Parameters
pointPoint3f
Returns
Distance(double, double, double)
Returns the distance between this line and the specified point
public double Distance(double x, double y, double z)
Parameters
Returns
PerpendicularFoot(Point3d)
Perpendicular foot
public Point3d PerpendicularFoot(Point3d point)
Parameters
pointPoint3d
Returns
PerpendicularFoot(Point3f)
Perpendicular foot
public Point3d PerpendicularFoot(Point3f point)
Parameters
pointPoint3f
Returns
PerpendicularFoot(double, double, double)
Perpendicular foot
public Point3d PerpendicularFoot(double x, double y, double z)