coby7016 / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

Bug in vector3.h - error setting default values. #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Libraries AP_Math\vector3.h

This line is not correct:

    // trivial ctor
    Vector3<T>() { x = y = x = 0; }

The result is the Vector3 defined without explicit values to have the z value 
wrong.

See issue 196

Should be:

    // trivial ctor
    Vector3<T>() { x = y = z = 0; }
?

Emile

Original issue reported on code.google.com by emile.ca...@gmail.com on 20 Jun 2011 at 10:25

GoogleCodeExporter commented 9 years ago
got it , thanks!

Original comment by jasonshort on 20 Jun 2011 at 4:30