Ray parameterization takes a Double

This commit is contained in:
Eryn Wells 2014-08-03 12:44:53 -07:00
parent b1d18a124f
commit 6f4d91af01
2 changed files with 2 additions and 2 deletions

View file

@ -299,7 +299,7 @@ Ray::Ray(Vector3 o, Vector3 d)
* Compute and return the point given by parameterizing this Ray by time t. * Compute and return the point given by parameterizing this Ray by time t.
*/ */
Vector3 Vector3
Ray::parameterize(const float t) Ray::parameterize(const Double& t)
const const
{ {
return origin + t * direction; return origin + t * direction;

View file

@ -124,7 +124,7 @@ struct Ray
Ray(); Ray();
Ray(Vector3 o, Vector3 d); Ray(Vector3 o, Vector3 d);
Vector3 parameterize(const float t) const; Vector3 parameterize(const Double& t) const;
Vector3 origin, direction; Vector3 origin, direction;
}; };