CVB.Net 15.0

Object representing an infinite line in 2 dimensional space. More...

Public Member Functions

 Line (Point2Dd normal, double d)
 Create a line object.
 
 Line (Point2Dd pt1, Point2Dd pt2)
 Create a line object.
 
void Set (Point2Dd pt1, Point2Dd pt2)
 Modify this line so that it traverses through two points.
 

Properties

Point2Dd Normal [get, set]
 Normal vector of the line. When setting a different normal vector, it will automatically normalized to a length of 1.0.
 
double Distance [get, set]
 Distance of the line from the origin.
 

Detailed Description

Object representing an infinite line in 2 dimensional space.

Constructor & Destructor Documentation

◆ Line() [1/2]

Line ( Point2Dd normal,
double d )

Create a line object.

Parameters
normalnormal vector of the line
ddistance between the line and the origin

◆ Line() [2/2]

Line ( Point2Dd pt1,
Point2Dd pt2 )

Create a line object.

Parameters
pt1first point the line is supposed to cross
pt2second point the line is supposed to cross

Member Function Documentation

◆ Set()

void Set ( Point2Dd pt1,
Point2Dd pt2 )

Modify this line so that it traverses through two points.

Parameters
pt1first point to traverse
pt2second point to traverse