Table of Contents

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

vx double

The X component of the normalized vector collinear to the line

vy double

The Y component of the normalized vector collinear to the line

vz double

The Z component of the normalized vector collinear to the line

x1 double

Z-coordinate of some point on the line

y1 double

Z-coordinate of some point on the line

z1 double

Z-coordinate of some point on the line

Line3D(float[])

Initializes by cvFitLine output

public Line3D(float[] line)

Parameters

line float[]

The returned value from cvFitLine

Properties

Vx

The X component of the normalized vector collinear to the line

public double Vx { get; }

Property Value

double

Vy

The Y component of the normalized vector collinear to the line

public double Vy { get; }

Property Value

double

Vz

The Z component of the normalized vector collinear to the line

public double Vz { get; }

Property Value

double

X1

X-coordinate of some point on the line

public double X1 { get; }

Property Value

double

Y1

Y-coordinate of some point on the line

public double Y1 { get; }

Property Value

double

Z1

Z-coordinate of some point on the line

public double Z1 { get; }

Property Value

double

Methods

Distance(Point3d)

Returns the distance between this line and the specified point

public double Distance(Point3d point)

Parameters

point Point3d

Returns

double

Distance(Point3f)

Returns the distance between this line and the specified point

public double Distance(Point3f point)

Parameters

point Point3f

Returns

double

Distance(double, double, double)

Returns the distance between this line and the specified point

public double Distance(double x, double y, double z)

Parameters

x double
y double
z double

Returns

double

PerpendicularFoot(Point3d)

Perpendicular foot

public Point3d PerpendicularFoot(Point3d point)

Parameters

point Point3d

Returns

Point3d

PerpendicularFoot(Point3f)

Perpendicular foot

public Point3d PerpendicularFoot(Point3f point)

Parameters

point Point3f

Returns

Point3d

PerpendicularFoot(double, double, double)

Perpendicular foot

public Point3d PerpendicularFoot(double x, double y, double z)

Parameters

x double
y double
z double

Returns

Point3d