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... | |

## 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.

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.

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.