parker used paper

v1
Brett 2024-04-04 10:45:50 -04:00
parent 646fd60212
commit 27af4e339f
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.5)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.16.3) set(BLT_VERSION 0.16.4)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -16,15 +16,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include <blt/math/fixed_point.h> #include <blt/math/fixed_point.h>
#include <blt/math/vectors.h>
#include <blt/std/logging.h> #include <blt/std/logging.h>
#include <iostream> #include <iostream>
#include <blt_tests.h> #include <blt_tests.h>
#include <cmath> #include <cmath>
using vec3fp = blt::vec<blt::fp64, 3>;
namespace blt::test namespace blt::test
{ {
void fixed_point() void fixed_point()
{ {
//vec3fp hello = {fp64::from_f64(32.023), fp64::from_f64(422.34023), fp64::from_f64(321.023)};
fp64 uv = fp64::from_u64(32); fp64 uv = fp64::from_u64(32);
fp64 iv = fp64::from_i64(16); fp64 iv = fp64::from_i64(16);