Lines Matching refs:a
53 public static Double4 add(Double4 a, Double4 b) { in add() argument
55 res.x = a.x + b.x; in add()
56 res.y = a.y + b.y; in add()
57 res.z = a.z + b.z; in add()
58 res.w = a.w + b.w; in add()
94 public static Double4 add(Double4 a, double b) { in add() argument
96 res.x = a.x + b; in add()
97 res.y = a.y + b; in add()
98 res.z = a.z + b; in add()
99 res.w = a.w + b; in add()
135 public static Double4 sub(Double4 a, double b) { in sub() argument
137 res.x = a.x - b; in sub()
138 res.y = a.y - b; in sub()
139 res.z = a.z - b; in sub()
140 res.w = a.w - b; in sub()
152 public static Double4 sub(Double4 a, Double4 b) { in sub() argument
154 res.x = a.x - b.x; in sub()
155 res.y = a.y - b.y; in sub()
156 res.z = a.z - b.z; in sub()
157 res.w = a.w - b.w; in sub()
193 public static Double4 mul(Double4 a, Double4 b) { in mul() argument
195 res.x = a.x * b.x; in mul()
196 res.y = a.y * b.y; in mul()
197 res.z = a.z * b.z; in mul()
198 res.w = a.w * b.w; in mul()
210 public static Double4 mul(Double4 a, double b) { in mul() argument
212 res.x = a.x * b; in mul()
213 res.y = a.y * b; in mul()
214 res.z = a.z * b; in mul()
215 res.w = a.w * b; in mul()
251 public static Double4 div(Double4 a, double b) { in div() argument
253 res.x = a.x / b; in div()
254 res.y = a.y / b; in div()
255 res.z = a.z / b; in div()
256 res.w = a.w / b; in div()
268 public static Double4 div(Double4 a, Double4 b) { in div() argument
270 res.x = a.x / b.x; in div()
271 res.y = a.y / b.y; in div()
272 res.z = a.z / b.z; in div()
273 res.w = a.w / b.w; in div()
284 public double dotProduct(Double4 a) { in dotProduct() argument
285 return (x * a.x) + (y * a.y) + (z * a.z) + (w * a.w); in dotProduct()
295 public static double dotProduct(Double4 a, Double4 b) { in dotProduct() argument
296 return (b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w); in dotProduct()
305 public void addMultiple(Double4 a, double factor) { in addMultiple() argument
306 x += a.x * factor; in addMultiple()
307 y += a.y * factor; in addMultiple()
308 z += a.z * factor; in addMultiple()
309 w += a.w * factor; in addMultiple()
317 public void set(Double4 a) { in set() argument
318 this.x = a.x; in set()
319 this.y = a.y; in set()
320 this.z = a.z; in set()
321 this.w = a.w; in set()