Class Line3D
A 3-dimensional line object
Inheritance
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class Line3D
Constructors
| Improve this Doc View SourceLine3D(Double, Double, Double, Double, Double, Double)
Initializes this object
Declaration
public Line3D(double vx, double vy, double vz, double x1, double y1, double z1)
Parameters
Type | Name | Description |
---|---|---|
System.Double | vx | The X component of the normalized vector collinear to the line |
System.Double | vy | The Y component of the normalized vector collinear to the line |
System.Double | vz | The Z component of the normalized vector collinear to the line |
System.Double | x1 | Z-coordinate of some point on the line |
System.Double | y1 | Z-coordinate of some point on the line |
System.Double | z1 | Z-coordinate of some point on the line |
Line3D(Single[])
Initializes by cvFitLine output
Declaration
public Line3D(float[] line)
Parameters
Type | Name | Description |
---|---|---|
System.Single[] | line | The returned value from cvFitLine |
Properties
| Improve this Doc View SourceVx
The X component of the normalized vector collinear to the line
Declaration
public double Vx { get; }
Property Value
Type | Description |
---|---|
System.Double |
Vy
The Y component of the normalized vector collinear to the line
Declaration
public double Vy { get; }
Property Value
Type | Description |
---|---|
System.Double |
Vz
The Z component of the normalized vector collinear to the line
Declaration
public double Vz { get; }
Property Value
Type | Description |
---|---|
System.Double |
X1
X-coordinate of some point on the line
Declaration
public double X1 { get; }
Property Value
Type | Description |
---|---|
System.Double |
Y1
Y-coordinate of some point on the line
Declaration
public double Y1 { get; }
Property Value
Type | Description |
---|---|
System.Double |
Z1
Z-coordinate of some point on the line
Declaration
public double Z1 { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceDistance(Point3d)
Returns the distance between this line and the specified point
Declaration
public double Distance(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Point3d | point |
Returns
Type | Description |
---|---|
System.Double |
Distance(Point3f)
Returns the distance between this line and the specified point
Declaration
public double Distance(Point3f point)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Point3f | point |
Returns
Type | Description |
---|---|
System.Double |
Distance(Double, Double, Double)
Returns the distance between this line and the specified point
Declaration
public double Distance(double x, double y, double z)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y | |
System.Double | z |
Returns
Type | Description |
---|---|
System.Double |
PerpendicularFoot(Point3d)
Perpendicular foot
Declaration
public Point3d PerpendicularFoot(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Point3d | point |
Returns
Type | Description |
---|---|
OpenCvSharp.Point3d |
PerpendicularFoot(Point3f)
Perpendicular foot
Declaration
public Point3d PerpendicularFoot(Point3f point)
Parameters
Type | Name | Description |
---|---|---|
OpenCvSharp.Point3f | point |
Returns
Type | Description |
---|---|
OpenCvSharp.Point3d |
PerpendicularFoot(Double, Double, Double)
Perpendicular foot
Declaration
public Point3d PerpendicularFoot(double x, double y, double z)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y | |
System.Double | z |
Returns
Type | Description |
---|---|
OpenCvSharp.Point3d |