Subversion Repositories gelsvn

Rev

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

Rev 2 Rev 569
Line 39... Line 39...
39
							x[2] * y[0] - x[0] * y[2], 
39
							x[2] * y[0] - x[0] * y[2], 
40
							x[0] * y[1] - x[1] * y[0] );
40
							x[0] * y[1] - x[1] * y[0] );
41
	}
41
	}
42
 
42
 
43
	/** Compute basis of orthogonal plane.
43
	/** Compute basis of orthogonal plane.
44
			Given a vector Compute two vectors that are orthogonal to it and 
44
			Given a vector compute two vectors that are orthogonal to it and 
45
			to each other. */
45
			to each other. */
46
	template<class T, class V>
46
	template<class T, class V>
47
	void orthogonal(const ArithVec3Float<T,V>&,
47
	void orthogonal(const ArithVec3Float<T,V>&,
48
									ArithVec3Float<T,V>&,
48
									ArithVec3Float<T,V>&,
49
									ArithVec3Float<T,V>&);
49
									ArithVec3Float<T,V>&);
50
 
50
 
-
 
51
  /** Build an orthonormal basis from a 3d unit vector [Frisvad 2012].
-
 
52
      Given a unit vector compute two unit vectors that are orthogonal to
-
 
53
      it and to each other. */
-
 
54
  template<class T, class V>
-
 
55
  void onb(const ArithVec3Float<T,V>&,
-
 
56
           ArithVec3Float<T,V>&,
-
 
57
           ArithVec3Float<T,V>&);
51
}
58
}
52
 
59
 
53
#endif
60
#endif
54
 
61