39 lines
912 B
C++
39 lines
912 B
C++
/// Josh's 3D Math Library
|
|
/// A C++20 Library for 3D Math, Computer Graphics, and Scientific Computing.
|
|
/// Developed and Maintained by Josh O'Leary @ Redacted Software.
|
|
/// Special Thanks to William Tomasine II and Maxine Hayes.
|
|
/// (c) 2024 Redacted Software
|
|
/// This work is dedicated to the public domain.
|
|
|
|
/// @file main.cpp
|
|
/// @desc Demonstrates J3ML features.
|
|
/// @edit 2024-07-06
|
|
|
|
|
|
#include <iostream>
|
|
#include <J3ML/Geometry.h>
|
|
#include <J3ML/J3ML.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
|
|
for (int i = 10; i < 9999999; i*=1.5f) {
|
|
std::cout << J3ML::Math::Functions::Truncate(i) << std::endl;
|
|
}
|
|
|
|
Ray a({420, 0, 0}, {1, 0, 0});
|
|
|
|
|
|
std::cout << a << std::endl;
|
|
std::cout << "j3ml demo coming soon" << std::endl;
|
|
return 0;
|
|
}
|
|
|
|
#ifdef __WIN32
|
|
extern "C" {
|
|
int wmain(int argc, wchar_t* argv[])
|
|
{
|
|
return main(argc, reinterpret_cast<char **>(argv));
|
|
}
|
|
};
|
|
#endif |