intravenous

changeset 7:3fae5eb6a411

wouldn't compile with {} constructor when vmath is compiled in single precision mode
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Apr 2012 06:39:23 +0300
parents aab0d8ea21cd
children 0f305fc0b548
files src/vein.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/vein.cc	Sun Apr 22 06:26:08 2012 +0300
     1.2 +++ b/src/vein.cc	Sun Apr 22 06:39:23 2012 +0300
     1.3 @@ -115,7 +115,7 @@
     1.4  
     1.5  		float theta = 0.0, dtheta = 2.0 * M_PI / (ring_subdiv - 1);
     1.6  		for(int j=0; j<ring_subdiv; j++) {
     1.7 -			Vector3 vec = Vector3{-cos(theta) * rad, sin(theta) * rad, 0.0};
     1.8 +			Vector3 vec = Vector3(-cos(theta) * rad, sin(theta) * rad, 0.0);
     1.9  			vec.transform(vrot);
    1.10  			vec += cent;
    1.11