Edit

kc3-lang/ftgl/src/FTPoint.cpp

Branch :

  • Show log

    Commit

  • Author : sammy
    Date : 2008-04-04 12:43:38
    Hash : 7c358859
    Message : * Generate a config.h file instead of passing all defines in the compiler command line. * "make install" now properly installs the includes, the documentation and the .pc file. * Generate a shared library.

  • src/FTPoint.cpp
  • #include "config.h"
    
    #include "FTPoint.h"
    
    
    bool operator == ( const FTPoint &a, const FTPoint &b) 
    {
        return((a.values[0] == b.values[0]) && (a.values[1] == b.values[1]) && (a.values[2] == b.values[2]));
    }
    
    bool operator != ( const FTPoint &a, const FTPoint &b) 
    {
        return((a.values[0] != b.values[0]) || (a.values[1] != b.values[1]) || (a.values[2] != b.values[2]));
    }
    
    
    FTPoint operator*( double multiplier, FTPoint& point)
    {
        return point * multiplier;
    }