Lines Matching refs:a

55     public static Double3 add(Double3 a, Double3 b) {  in add()  argument
57 res.x = a.x + b.x; in add()
58 res.y = a.y + b.y; in add()
59 res.z = a.z + b.z; in add()
93 public static Double3 add(Double3 a, double b) { in add() argument
95 res.x = a.x + b; in add()
96 res.y = a.y + b; in add()
97 res.z = a.z + b; in add()
120 public static Double3 sub(Double3 a, Double3 b) { in sub() argument
122 res.x = a.x - b.x; in sub()
123 res.y = a.y - b.y; in sub()
124 res.z = a.z - b.z; in sub()
147 public static Double3 sub(Double3 a, double b) { in sub() argument
149 res.x = a.x - b; in sub()
150 res.y = a.y - b; in sub()
151 res.z = a.z - b; in sub()
174 public static Double3 mul(Double3 a, Double3 b) { in mul() argument
176 res.x = a.x * b.x; in mul()
177 res.y = a.y * b.y; in mul()
178 res.z = a.z * b.z; in mul()
201 public static Double3 mul(Double3 a, double b) { in mul() argument
203 res.x = a.x * b; in mul()
204 res.y = a.y * b; in mul()
205 res.z = a.z * b; in mul()
228 public static Double3 div(Double3 a, Double3 b) { in div() argument
230 res.x = a.x / b.x; in div()
231 res.y = a.y / b.y; in div()
232 res.z = a.z / b.z; in div()
255 public static Double3 div(Double3 a, double b) { in div() argument
257 res.x = a.x / b; in div()
258 res.y = a.y / b; in div()
259 res.z = a.z / b; in div()
270 public double dotProduct(Double3 a) { in dotProduct() argument
271 return (x * a.x) + (y * a.y) + (z * a.z); in dotProduct()
281 public static double dotProduct(Double3 a, Double3 b) { in dotProduct() argument
282 return (b.x * a.x) + (b.y * a.y) + (b.z * a.z); in dotProduct()
291 public void addMultiple(Double3 a, double factor) { in addMultiple() argument
292 x += a.x * factor; in addMultiple()
293 y += a.y * factor; in addMultiple()
294 z += a.z * factor; in addMultiple()
302 public void set(Double3 a) { in set() argument
303 this.x = a.x; in set()
304 this.y = a.y; in set()
305 this.z = a.z; in set()