Swedish Cubes for Unity»Blog

Unity Vector Library and Generator

Ordnance inbound.

This is the math code I've been using to develop Swedish Cubes for a while now. It provides more vector types/functions for Unity and the C++ code it is wont to interop with. I removed a bunch of the dependencies in the code generator and put it up.
Mārtiņš Možeiko,
#ifndef UNITY_VECTORSunion VectorI2

That's not valid C.

I don't understand difference between UnityVector.cs and UnityVectors.cs files. Both have vector types. One has swizzle functions appended, but they are also available in UnityVectorSwizzles.cs file. Confusing.
Oswald Hurlem,
Thank you -_- Fixed.