Skip to content

ondesly/vectors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vectors

Math vectors lib with arithmetic operations for 2 and 4 elements

Example

Beside the example below, you may want to check test files in the tests directory.

vec2

oo::vec2<float> f1{2.F, 3.F};
oo::vec2<float> f2{5.F};

auto a = f1 + f2;
auto s = f1 - f2;
auto m = f1 * f2;
auto d = f1 / f2;

vec4

oo::vec4<float> f1{2.F, 3.F, 4.F, 5.F};
oo::vec4<float> f2{5.F};

auto a = f1 + f2;
auto s = f1 - f2;
auto m = f1 * f2;
auto d = f1 / f2;

Requirements

This library requires a C++17 compiler and standard library.

About

Math vectors lib with arithmetic operations for 2 and 4 elements

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published