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

An infinite vertical line. More...

+ Inheritance diagram for VerticalLine:

Public Member Functions

 VerticalLine (double x)
 
VerticalLineclone () 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 getXpos () 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 vertical line.

Definition at line 39 of file Line.h.

Constructor & Destructor Documentation

◆ VerticalLine()

VerticalLine::VerticalLine ( double  x)
Parameters
xThe value at which it crosses x-axes

Definition at line 68 of file Line.cpp.


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