BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::RealSpace::VectorRange Struct Reference

Description

Range of coordinates.

Definition at line 70 of file def.h.

Collaboration diagram for GUI::RealSpace::VectorRange:
[legend]

Public Member Functions

 VectorRange (Range, Range, Range)
 
 VectorRange (Vector3D, Vector3D)
 
float length () const
 
Vector3D mid () const
 
Vector3D size () const
 

Public Attributes

Range x
 
Range y
 
Range z
 

Constructor & Destructor Documentation

◆ VectorRange() [1/2]

GUI::RealSpace::VectorRange::VectorRange ( Range  x_,
Range  y_,
Range  z_ 
)

Definition at line 120 of file def.cpp.

121  : x(x_)
122  , y(y_)
123  , z(z_)
124 {
125 }

◆ VectorRange() [2/2]

GUI::RealSpace::VectorRange::VectorRange ( Vector3D  _1,
Vector3D  _2 
)

Definition at line 127 of file def.cpp.

128  : x(Range(_1.x, _2.x))
129  , y(Range(_1.y, _2.y))
130  , z(Range(_1.z, _2.z))
131 {
132 }

Member Function Documentation

◆ length()

float GUI::RealSpace::VectorRange::length ( ) const

Definition at line 144 of file def.cpp.

145 {
146  return Vector3D(x.size(), y.size(), z.size()).length();
147 }
float size() const
Definition: def.cpp:109

References GUI::RealSpace::Vector3D::length(), GUI::RealSpace::Range::size(), x, y, and z.

Here is the call graph for this function:

◆ mid()

Vector3D GUI::RealSpace::VectorRange::mid ( ) const

Definition at line 139 of file def.cpp.

140 {
141  return Vector3D(x.mid(), y.mid(), z.mid());
142 }
float mid() const
Definition: def.cpp:114

References GUI::RealSpace::Range::mid(), x, y, and z.

Referenced by GUI::RealSpace::Layer::Layer().

Here is the call graph for this function:

◆ size()

Vector3D GUI::RealSpace::VectorRange::size ( ) const

Definition at line 134 of file def.cpp.

135 {
136  return Vector3D(x.size(), y.size(), z.size());
137 }

References GUI::RealSpace::Range::size(), x, y, and z.

Referenced by GUI::RealSpace::Layer::Layer().

Here is the call graph for this function:

Member Data Documentation

◆ x

Range GUI::RealSpace::VectorRange::x

Definition at line 71 of file def.h.

Referenced by length(), mid(), and size().

◆ y

Range GUI::RealSpace::VectorRange::y

Definition at line 71 of file def.h.

Referenced by length(), mid(), and size().

◆ z

Range GUI::RealSpace::VectorRange::z

Definition at line 71 of file def.h.

Referenced by length(), mid(), and size().


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