瀏覽代碼

math: clean up the Real class.

wip/core-clipp
Sam Hocevar 4 年之前
父節點
當前提交
80dafa8edf
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. +4
    -3
      include/lol/math/real.h

legacy/lol/math/real.h → include/lol/math/real.h 查看文件

@@ -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

Loading…
取消
儲存