You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
345 B
14 lines
345 B
#pragma once
|
|
#include "real.hpp"
|
|
#include <limits>
|
|
#include <numbers>
|
|
|
|
enum PtBoundaryRelation { Inside = -1, OnBoundary, Outside = 1 };
|
|
|
|
const real PI = std::numbers::pi;
|
|
const real PI2 = 2 * PI;
|
|
const real EPS = std::numeric_limits<real>::epsilon() * 1e2;
|
|
inline bool isEqual(double a, double b) {
|
|
// TODO
|
|
return a == b;
|
|
}
|