propagating precision requirments into operations
This commit is contained in:
+15
-15
@@ -116,9 +116,9 @@ private:
|
||||
|
||||
explicit Animator(AT t = UNKNOWN)
|
||||
: type (t)
|
||||
, speed (0.001f)
|
||||
, direction (0.f,1.f,0.f)
|
||||
, circleRadius (1.f)
|
||||
, speed (0.001)
|
||||
, direction (0.0,1.0,0.0)
|
||||
, circleRadius (1.0)
|
||||
, tightness (0.5f)
|
||||
, loop (true)
|
||||
, timeForWay (100)
|
||||
@@ -127,15 +127,15 @@ private:
|
||||
|
||||
|
||||
// common parameters
|
||||
float speed;
|
||||
ai_real speed;
|
||||
aiVector3D direction;
|
||||
|
||||
// FLY_CIRCLE
|
||||
aiVector3D circleCenter;
|
||||
float circleRadius;
|
||||
ai_real circleRadius;
|
||||
|
||||
// FOLLOW_SPLINE
|
||||
float tightness;
|
||||
ai_real tightness;
|
||||
std::vector<aiVectorKey> splineKeys;
|
||||
|
||||
// ROTATION (angles given in direction)
|
||||
@@ -166,11 +166,11 @@ private:
|
||||
|
||||
explicit Node(ET t)
|
||||
: type (t)
|
||||
, scaling (1.f,1.f,1.f) // assume uniform scaling by default
|
||||
, scaling (1.0,1.0,1.0) // assume uniform scaling by default
|
||||
, parent()
|
||||
, framesPerSecond (0.f)
|
||||
, framesPerSecond (0.0)
|
||||
, id()
|
||||
, sphereRadius (1.f)
|
||||
, sphereRadius (1.0)
|
||||
, spherePolyCountX (100)
|
||||
, spherePolyCountY (100)
|
||||
{
|
||||
@@ -202,7 +202,7 @@ private:
|
||||
|
||||
// Animated meshes: frames per second
|
||||
// 0.f if not specified
|
||||
float framesPerSecond;
|
||||
ai_real framesPerSecond;
|
||||
|
||||
// Meshes: path to the mesh to be loaded
|
||||
std::string meshPath;
|
||||
@@ -213,7 +213,7 @@ private:
|
||||
std::vector< std::pair<aiMaterial*, unsigned int> > materials;
|
||||
|
||||
// Spheres: radius of the sphere to be generates
|
||||
float sphereRadius;
|
||||
ai_real sphereRadius;
|
||||
|
||||
// Spheres: Number of polygons in the x,y direction
|
||||
unsigned int spherePolyCountX,spherePolyCountY;
|
||||
@@ -230,13 +230,13 @@ private:
|
||||
{}
|
||||
|
||||
//! Construction from single vertex components
|
||||
SkyboxVertex(float px, float py, float pz,
|
||||
float nx, float ny, float nz,
|
||||
float uvx, float uvy)
|
||||
SkyboxVertex(ai_real px, ai_real py, ai_real pz,
|
||||
ai_real nx, ai_real ny, ai_real nz,
|
||||
ai_real uvx, ai_real uvy)
|
||||
|
||||
: position (px,py,pz)
|
||||
, normal (nx,ny,nz)
|
||||
, uv (uvx,uvy,0.f)
|
||||
, uv (uvx,uvy,0.0)
|
||||
{}
|
||||
|
||||
aiVector3D position, normal, uv;
|
||||
|
||||
Reference in New Issue
Block a user