Lines Matching refs:a

50     public static Double3 add(Double3 a, Double3 b) {  in add()  argument
52 res.x = a.x + b.x; in add()
53 res.y = a.y + b.y; in add()
54 res.z = a.z + b.z; in add()
88 public static Double3 add(Double3 a, double b) { in add() argument
90 res.x = a.x + b; in add()
91 res.y = a.y + b; in add()
92 res.z = a.z + b; in add()
115 public static Double3 sub(Double3 a, Double3 b) { in sub() argument
117 res.x = a.x - b.x; in sub()
118 res.y = a.y - b.y; in sub()
119 res.z = a.z - b.z; in sub()
142 public static Double3 sub(Double3 a, double b) { in sub() argument
144 res.x = a.x - b; in sub()
145 res.y = a.y - b; in sub()
146 res.z = a.z - b; in sub()
169 public static Double3 mul(Double3 a, Double3 b) { in mul() argument
171 res.x = a.x * b.x; in mul()
172 res.y = a.y * b.y; in mul()
173 res.z = a.z * b.z; in mul()
196 public static Double3 mul(Double3 a, double b) { in mul() argument
198 res.x = a.x * b; in mul()
199 res.y = a.y * b; in mul()
200 res.z = a.z * b; in mul()
223 public static Double3 div(Double3 a, Double3 b) { in div() argument
225 res.x = a.x / b.x; in div()
226 res.y = a.y / b.y; in div()
227 res.z = a.z / b.z; in div()
250 public static Double3 div(Double3 a, double b) { in div() argument
252 res.x = a.x / b; in div()
253 res.y = a.y / b; in div()
254 res.z = a.z / b; in div()
265 public double dotProduct(Double3 a) { in dotProduct() argument
266 return (x * a.x) + (y * a.y) + (z * a.z); in dotProduct()
276 public static double dotProduct(Double3 a, Double3 b) { in dotProduct() argument
277 return (b.x * a.x) + (b.y * a.y) + (b.z * a.z); in dotProduct()
286 public void addMultiple(Double3 a, double factor) { in addMultiple() argument
287 x += a.x * factor; in addMultiple()
288 y += a.y * factor; in addMultiple()
289 z += a.z * factor; in addMultiple()
297 public void set(Double3 a) { in set() argument
298 this.x = a.x; in set()
299 this.y = a.y; in set()
300 this.z = a.z; in set()