Subversion Repositories gelsvn

Rev

Rev 45 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 125
Line 11... Line 11...
11
    public:
11
    public:
12
	  
12
	  
13
      ArithVecFloat() 
13
      ArithVecFloat() 
14
	{
14
	{
15
#ifndef NDEBUG
15
#ifndef NDEBUG
16
	  std::fill_n(data, N, CGLA_INIT_VALUE);
16
	  std::fill_n(this->data, N, CGLA_INIT_VALUE);
17
#endif
17
#endif
18
	}
18
	}
19
	  
19
	  
20
      ArithVecFloat(T a): 
20
      ArithVecFloat(T a): 
21
	ArithVec<T,V,N>(a) {}
21
	ArithVec<T,V,N>(a) {}
Line 36... Line 36...
36
	}
36
	}
37
    
37
    
38
      /// Normalize vector.
38
      /// Normalize vector.
39
      void normalize() 
39
      void normalize() 
40
	{
40
	{
41
	  (*this) /= length();
41
	  (*this) /= this->length();
42
	}
42
	}
43
		
43
		
44
    };
44
    };
45
 
45
 
46
  /// Returns normalized vector
46
  /// Returns normalized vector