Lines Matching refs:Vec
49 class Vec : public VecBase<T,dim> {
51 Vec() {}
52 Vec<T,dim>& operator = (const Vec<T, dim> &x) {
59 Vec<T, dim> operator + (const Vec<T,dim> &x, const Vec<T,dim> &y) {
60 Vec<T, dim> out;
67 Vec<T, dim> operator - (const Vec<T,dim> &x, const Vec<T,dim> &y) {
68 Vec<T, dim> out;
75 Vec<T, dim> operator * (const Vec<T,dim> &x, const Vec<T,dim> &y) {
76 Vec<T, dim> out;
83 Vec<T, dim> operator / (const Vec<T,dim> &x, const Vec<T,dim> &y) {
84 Vec<T, dim> out;
91 T dot(const Vec<T,dim> &x, const Vec<T,dim> &y) {
99 Vec<T, dim> operator * (const Vec<T,dim> &x, T scale) {
100 Vec<T, dim> out;
107 Vec<T, dim> operator / (const Vec<T,dim> &x, T scale) {
108 Vec<T, dim> out;
115 Vec<T, dim> operator + (const Vec<T,dim> &x, T val) {
116 Vec<T, dim> out;
124 class Vec<float, 2> : public VecBase<float, 2> {
126 Vec() {}
127 Vec(float x, float y) {
131 Vec<float, 2>& operator = (const Vec<float, 2> &x) {
138 class Vec<float, 3> {
141 Vec() {}
142 Vec(float x, float y, float z) {
147 Vec<float, 3>& operator = (const Vec<float, 3> &x) {
154 class Vec<float, 4> {
157 Vec() {}
158 Vec(float x, float y, float z, float w) {
164 Vec<float, 4>& operator = (const Vec<float, 4> &x) {
170 typedef Vec<float,2> Vec2f;
171 typedef Vec<float,3> Vec3f;
172 typedef Vec<float,4> Vec4f;