Comments (2)
This fixes the issue, but I'm not sure if it's a correct place to fix it? Maybe fix translation matrix instead?
void gb_float44_mul_vec4_fixed(gbVec4 *out, float m[4][4], gbVec4 v)
{
out->x = m[0][0]*v.x + m[1][0]*v.y + m[2][0]*v.z + m[3][0]*v.w;
out->y = m[0][1]*v.x + m[1][1]*v.y + m[2][1]*v.z + m[3][1]*v.w;
out->z = m[0][2]*v.x + m[1][2]*v.y + m[2][2]*v.z + m[3][2]*v.w;
out->w = m[0][3]*v.x + m[1][3]*v.y + m[2][3]*v.z + m[3][3]*v.w;
}
from gb.
This will be fixed in v0.07.
from gb.
Related Issues (20)
- 4d-vectors as columns in 2 by 2 matrix HOT 1
- Clarify column-major vs row-major (docs) HOT 1
- gb_mat4_inverse still broken a bit (0.07b) HOT 1
- Line 327~329 in gb_string.h will core dump HOT 1
- gb_utf8_decode
- gb_math: gb_rectX_union
- file_last_write_time on non-windows
- Cant not use at vs2008
- the gb.h inside demo is outdate HOT 1
- gb_memcopy returns invalid pointer
- Errors when compiling HOT 1
- Quaternion slerp fairly broken HOT 3
- Improving Quality of Exponential and Logarithm Functions HOT 2
- Clang compiler detected as gcc
- GB_MATH_NO_MATH_H's gb_tan doesn't handle values over half PI
- gb_float22_mul_vec2 and gb_float33_mul_vec3 seem to expect a row-major matrix HOT 1
- `gb_mod` is broken
- Optimized version of gb_quat_euler_angles
- `GB_NO_WINDOWS_H` doesn't compile
- gb_gen_range_isze generates random values outside of its range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gb.