public static unsafe Vec4 operator *(Vec4 left, float right) { #if IMOET_UNSAFE UMath.MassMultiply((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.MassMultiply((float *)&res, d, 2); return(res); #else return(new Vec2(a.x * d, a.y * d)); #endif }
public static unsafe Vec3 operator *(Vec3 l, float r) { #if IMOET_UNSAFE Vec3 res = l; UMath.MassMultiply((float *)&res, r, 3); return(res); #else return(new Vec3(l.x * r, l.y * r, l.z * r)); #endif }