CVBpy 14.1
Line2D Class Reference

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

Inherits object.

Public Member Functions

cvb.Line2D create (cvb.Point2D normal, float distance)
 Create a line object. More...
 
cvb.Line2D create (cvb.Point2D p1, cvb.Point2D p2)
 Create a line object. More...
 

Properties

 distance = property
 float: Gets or sets the distance of the line from the origin.
 
 normal = property
 cvb.Point2D: Gets or sets the normal vector of the line.
 

Detailed Description

Object representing an infinite line in 2 dimensional space.

Supports the same arguments as cvb.Line2D.create.

Parameters

*args : Any Parameters like cvb.Line2D.create.

**kwargs : Any Parameters like cvb.Line2D.create.

Member Function Documentation

◆ create() [1/2]

cvb.Line2D create ( cvb.Point2D  normal,
float  distance 
)

Create a line object.

Parameters

normal : cvb.Point2D The normal vector of the line.

distance : float Distance between the line and the origin.

Returns

cvb.Line2D A 2D line.

◆ create() [2/2]

cvb.Line2D create ( cvb.Point2D  p1,
cvb.Point2D  p2 
)

Create a line object.

Parameters

p1 : cvb.Point2D The first point the line is supposed to cross.

p2 : cvb.Point2D The second point the line is supposed to cross.

Returns

cvb.Line2D A 2D line.