32#ifndef RCSC_GEOM_SIZE2D_H
33#define RCSC_GEOM_SIZE2D_H
69 : M_length( std::fabs(
length ) ),
70 M_width( std::fabs(
width ) )
82 M_length = std::fabs(
length );
83 M_width = std::fabs(
width );
94 M_length = std::fabs(
length );
105 M_width = std::fabs(
width );
142 std::ostream &
print( std::ostream & os )
const
2D size definition class
Definition: size_2d.h:44
const Size2D & assign(const double length, const double width)
assign new range directly.
Definition: size_2d.h:79
double length() const
get the value of X range
Definition: size_2d.h:113
const Size2D & setWidth(const double width)
set new Y range
Definition: size_2d.h:103
Size2D()
default constructor.
Definition: size_2d.h:57
std::ostream & print(std::ostream &os) const
output values to stream.
Definition: size_2d.h:142
double diagonal() const
get the length of diagonal line
Definition: size_2d.h:131
double width() const
get the value of Y range
Definition: size_2d.h:122
Size2D(const double length, const double width)
constructor with variables
Definition: size_2d.h:67
const Size2D & setLength(const double length)
set new X range
Definition: size_2d.h:92