Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.
/ ggvec Public archive

A fast LuaJIT 2D, 3D, and 4D vector library

License

Notifications You must be signed in to change notification settings

ocornoc/ggvec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggvec

ggvec is a LuaJIT 2D, 3D, and 4D vector library.

Technical Types

These are the C types used to internally represent the vectors.

Vector type C type
4D vectors struct {float x, y, z, w;}
3D vectors struct {float x, y, z;}
2D vectors struct {double x, y;}

4D and 3D vectors are only floats so that they can easily fit inside XMM registers. All vectors are 16-byte aligned and all members are packed.

About

A fast LuaJIT 2D, 3D, and 4D vector library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages