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

An infinite horizontal line. More...

+ Inheritance diagram for HorizontalLine:

Public Member Functions

 HorizontalLine (double y)
 
HorizontalLineclone () 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).
 
double getYpos () const
 
- 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

An infinite horizontal line.

Definition at line 57 of file Line.h.

Constructor & Destructor Documentation

◆ HorizontalLine()

HorizontalLine::HorizontalLine ( double  y)
Parameters
yThe value at which it crosses y-axes

Definition at line 83 of file Line.cpp.


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