dvec 0.0.2
Library for extremely lightweight vector and matrix operations.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
dvec
Library for extremely lightweight vector and matrix operations.
Here's an example:
import dvec;
import std.stdio;
void main() {
Vec2f p = Vec2f(0, 0);
Mat3f tx = Mat3f.identity();
tx.translate(42, 64);
auto transformed = tx.map(p);
assert(transformed.data == [42, 64]);
}
For more information, please see the documentation.
- 0.0.2 released 2 years ago
- andrewlalis/dvec
- MIT
- Copyright © 2022, Andrew Lalis
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.7 2022-Oct-26 0.0.6 2022-Oct-25 0.0.5 2022-Oct-24 0.0.4 2022-Apr-10 0.0.3 2022-Apr-06 - Download Stats:
-
-
0 downloads today
-
1 downloads this week
-
1 downloads this month
-
36 downloads total
-
- Score:
- 1.0
- Short URL:
- dvec.dub.pm