4#include <private/qglobal_p.h>
31 vec2(
float x = 0.0f,
float y = 0.0f) :
x(
x),
y(
y) { }
34 vec2 operator-(vec2
v) {
35 return vec2(
x -
v.x,
y -
v.y);
38 vec2 operator+(vec2
v) {
39 return vec2(
x +
v.x,
y +
v.y);
45 mat2(
float a = 1.0f,
float b = 0.0f,
float c = 0.0f,
float d = 1.0f)
53 mat2 transposed()
const {
58 mat2 inverted()
const {
59 float det = 1.0f / (
a *
d -
b *
c);
60 return mat2( d * det, -
b * det,
64 mat2 operator+(mat2
m)
const {
65 return mat2(
a +
m.a,
b +
m.b,
69 mat2 operator-(mat2
m)
const {
70 return mat2(
a -
m.a,
b -
m.b,
74 vec2 operator*(vec2
v)
const {
79 mat2 operator*(mat2
M)
const {
80 return mat2(
a *
M.a +
b *
M.c,
118 P = A * P * A.transposed() + Q;
131 mat2 K = P * S.inverted();
135 P = (mat2() - K) * P;
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * v
[13]
GLint GLint GLint GLint GLint x
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
void initialize(float pos, float velocity)
void update(float pos, float velocity, float timeDelta)