Skip to content

eggyengine/eggenvector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eggenvector

eggenvector (like eigenvector haha) is a math library backed by the zig SIMD @Vector types, and does not contain any external dependencies.

The library specifically targets vulkan-based mathematics (as is used for the eggy engine), however many functions are available that allow for other renderers and physics engines contexts to be available (such as OpenGL).

  • Vector2|3|4|any
  • Mat|2x2|3x3|4x4|any_rowXany_col
  • Transform
  • Angle

add to project

requires zig 0.16.0 (have not tested for other zig versions, however likely works fine. please open a PR to reduce down the minimum version).

to use this with the zig build system, import as so:

zig fetch --save git+https://github.com/eggyengine/eggenvector

and then in build.zig:

const emath = b.dependency("eggenvector", .{
    .target = target,
    .optimize = optimize,
});

exe.root_module.addImport("eggenvector", emath.module("eggenvector"));

and lastly in your library/executable:

const emath = @import("eggenvector");

About

a math library built for zig using SIMD types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages