21 lines
No EOL
412 B
C++
21 lines
No EOL
412 B
C++
#include <iostream>
|
|
#include <chrono>
|
|
#include <immintrin.h>
|
|
#include <random>
|
|
#include <format>
|
|
|
|
import Crafter.Math;
|
|
using namespace Crafter;
|
|
|
|
|
|
int main() {
|
|
Matrix<float, 4, 4, 1> matrix(
|
|
1, 0, 0, 0,
|
|
0, 1, 0, 0,
|
|
0, 0, 1, 0,
|
|
1, 0, 0, 1
|
|
);
|
|
Vector<float, 4> test(0, 0, 0, 1);
|
|
Vector<float, 4> result = matrix*test;
|
|
std::cout << result.ToString() << std::endl;
|
|
} |