Bläddra i källkod

math: clean up the Real class.

wip/core-clipp
Sam Hocevar 4 år sedan
förälder
incheckning
80dafa8edf
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. +4
    -3
      include/lol/math/real.h

legacy/lol/math/real.h → include/lol/math/real.h Visa fil

@@ -1,7 +1,7 @@
//
// Lol Engine
//
// Copyright © 2010—2019 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
//
// Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
@@ -17,8 +17,6 @@
// --------------
//

#include <lol/base/types.h>

#include <vector>
#include <string>
#include <cstdint>
@@ -30,6 +28,9 @@ namespace lol
#undef min
#undef max

template<typename T> class Real;
typedef Real<uint32_t> real;

/*
* The base class for reals. The only real reason for making this a template
* class is so we can have implicit constructors ("real x = 1" works) but

Laddar…
Avbryt
Spara