mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Syntax errors
This commit is contained in:
@@ -218,8 +218,8 @@ void
|
|||||||
glm_vec2_complex_div(vec2 a, vec2 b, vec2 dest) {
|
glm_vec2_complex_div(vec2 a, vec2 b, vec2 dest) {
|
||||||
float tr, ti;
|
float tr, ti;
|
||||||
float const ibnorm2 = 1.0f / (b[0] * b[0] + b[1] * b[1]);
|
float const ibnorm2 = 1.0f / (b[0] * b[0] + b[1] * b[1]);
|
||||||
tr = ibnorm * (a[0] * b[0] + a[1] * b[1])
|
tr = ibnorm2 * (a[0] * b[0] + a[1] * b[1]);
|
||||||
ti = ibnorm * (a[1] * b[0] - a[0] * b[1])
|
ti = ibnorm2 * (a[1] * b[0] - a[0] * b[1]);
|
||||||
dest[0] = tr;
|
dest[0] = tr;
|
||||||
dest[1] = ti;
|
dest[1] = ti;
|
||||||
}
|
}
|
||||||
@@ -233,7 +233,7 @@ glm_vec2_complex_div(vec2 a, vec2 b, vec2 dest) {
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_vec2_complex_conjugate(vec2 a, vec2 dest) {
|
glm_vec2_complex_conjugate(vec2 a, vec2 dest) {
|
||||||
dest[0] = a[0]
|
dest[0] = a[0];
|
||||||
dest[1] = -a[1];
|
dest[1] = -a[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user