Object representing an infinite line in 2 dimensional space. More...
Public Member Functions | |
| None | Line2D (self, *Any args, **Any kwargs) |
| Supports the same arguments as cvb.Line2D.create. | |
| cvb.Line2D | create (cvb.Point2D normal, float distance) |
| Create a line object. | |
| cvb.Line2D | create (cvb.Point2D p1, cvb.Point2D p2) |
| Create a line object. | |
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. | |
Object representing an infinite line in 2 dimensional space.
| None Line2D | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
Supports the same arguments as cvb.Line2D.create.
*args : Any Parameters like cvb.Line2D.create.
**kwargs : Any Parameters like cvb.Line2D.create.
| cvb.Line2D create | ( | cvb.Point2D | normal, |
| float | distance ) |
Create a line object.
normal : cvb.Point2D The normal vector of the line.
distance : float Distance between the line and the origin.
cvb.Line2D A 2D line.
| cvb.Line2D create | ( | cvb.Point2D | p1, |
| cvb.Point2D | p2 ) |
Create a line object.
p1 : cvb.Point2D The first point the line is supposed to cross.
p2 : cvb.Point2D The second point the line is supposed to cross.
cvb.Line2D A 2D line.