BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Line Class Reference

A line segment. More...

+ Inheritance diagram for Line:

Public Member Functions

 Line (double x1, double y1, double x2, double y2)
 
Line * clone () const
 
bool contains (double x, double y) const
 Returns true if point with given coordinates is inside or on border of the shape.
 
bool contains (const Bin1D &binx, const Bin1D &biny) const
 Returns true if area defined by two bins is inside or on border of polygon (more precisely, if mid point of two bins satisfy this condition).
 
- Public Member Functions inherited from IShape2D
 IShape2D (const char *name)
 
- Public Member Functions inherited from ICloneable
 ICloneable (const ICloneable &)=delete
 
 ICloneable (ICloneable &&)=default
 
virtual void transferToCPP ()
 Used for Python overriding of clone (see swig/tweaks.py)
 

Additional Inherited Members

- Protected Member Functions inherited from IShape2D
virtual void print (std::ostream &ostr) const
 

Detailed Description

A line segment.

Definition at line 23 of file Line.h.


The documentation for this class was generated from the following files: