BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Ellipse Class Reference

An ellipse, for use in detector masks. More...

+ Inheritance diagram for Ellipse:

Public Member Functions

 Ellipse (double xcenter, double ycenter, double xradius, double yradius, double theta=0.0)
 
Ellipseclone () const
 
bool contains (const Bin1D &binx, const Bin1D &biny) const
 Returns true if area defined by two bins is inside or on border of ellipse; more precisely, if mid point of two bins satisfy this condition.
 
bool contains (double x, double y) const
 
double getCenterX () const
 
double getCenterY () const
 
double getRadiusX () const
 
double getRadiusY () const
 
double getTheta () const
 

Detailed Description

An ellipse, for use in detector masks.

Constructor & Destructor Documentation

◆ Ellipse()

Ellipse::Ellipse ( double  xcenter,
double  ycenter,
double  xradius,
double  yradius,
double  theta = 0.0 
)
Parameters
xcenterx-coordinate of Ellipse's center
ycentery-coordinate of Ellipse's center
xradiusRadius along x-axis
yradiusRadius along y-axis
thetaAngle of Ellipse rotation in radians