public static unsafe Vec4 operator /(Vec4 left, float right) { #if IMOET_UNSAFE UMath.MassDivided((float *)&left, right, 4); return(left); #else return(new Vec4(left.x / right, left.y / right, left.z / right, left.w / right)); #endif }
public static unsafe Vec2 operator /(Vec2 a, float d) { #if IMOET_UNSAFE Vec2 res = a; UMath.MassDivided((float *)&a, d, 2); return(res); #else return(new Vec2(a.x / d, a.y / d)); #endif }