File: Limit2D.cpp

package info (click to toggle)
ausaxs 1.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 72,592 kB
  • sloc: cpp: 49,853; ansic: 6,901; python: 730; makefile: 18
file content (11 lines) | stat: -rw-r--r-- 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: LGPL-3.0-or-later
// Author: Kristian Lytje

#include <utility/Limit2D.h>

using namespace ausaxs;

Limit2D::Limit2D() noexcept = default;
Limit2D::Limit2D(const Limit& x, const Limit& y) noexcept : x(x), y(y) {}
Limit2D::Limit2D(double xmin, double xmax, double ymin, double ymax) noexcept : x(xmin, xmax), y(ymin, ymax) {}
bool Limit2D::empty() const noexcept {return x.empty() || y.empty();}