1. 4FipS.com
  2. Photos
  3. Videos
  4. Code
  5. Forums
  6. pfQuizzz
  7. About
/*
(c) 2013 +++ Filip Stoklas, aka FipS, http://www.4FipS.com +++
THIS CODE IS FREE - LICENSED UNDER THE MIT LICENSE
ARTICLE URL: http://forums.4fips.com/viewtopic.php?f=3&t=1068
*/

#include "vector3.h"

int main()
{
    {
        const Vector3_f a;
        const Vector3_f x(1.f, 0.f, 0.f);
        const Vector3_f y(0.f, 1.f, 0.f);
        const float res = dot(x, y);
    }

    {
        const Vector3_d a;
        const Vector3_d x(1.0, 0.0, 0.0);
        const Vector3_d y(0.0, 1.0, 0.0);
        const double res = dot(x, y);
    }
}