1. 4FIPS
  2. PHOTOS
  3. VIDEOS
  4. APPS
  5. CODE
  6. FORUMS
  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);
    }
}