BLI: Add mul_v2_v2v2 function
This commit is contained in:
parent
e38a0b3748
commit
a5101de6a9
|
@ -120,6 +120,7 @@ MINLINE void mul_v2_v2fl(float r[2], const float a[2], float f);
|
|||
MINLINE void mul_v3_fl(float r[3], float f);
|
||||
MINLINE void mul_v3_v3fl(float r[3], const float a[3], float f);
|
||||
MINLINE void mul_v2_v2(float r[2], const float a[2]);
|
||||
MINLINE void mul_v2_v2v2(float r[2], const float a[2], const float b[2]);
|
||||
MINLINE void mul_v3_v3(float r[3], const float a[3]);
|
||||
MINLINE void mul_v3_v3v3(float r[3], const float a[3], const float b[3]);
|
||||
MINLINE void mul_v4_fl(float r[4], float f);
|
||||
|
|
|
@ -615,6 +615,12 @@ MINLINE void mul_v3_v3v3(float r[3], const float v1[3], const float v2[3])
|
|||
r[2] = v1[2] * v2[2];
|
||||
}
|
||||
|
||||
MINLINE void mul_v2_v2v2(float r[2], const float a[2], const float b[2])
|
||||
{
|
||||
r[0] = a[0] * b[0];
|
||||
r[1] = a[1] * b[1];
|
||||
}
|
||||
|
||||
MINLINE void negate_v2(float r[2])
|
||||
{
|
||||
r[0] = -r[0];
|
||||
|
|
Loading…
Reference in New Issue