Lines Matching refs:res
53 Float2 res = new Float2(); in add() local
54 res.x = a.x + b.x; in add()
55 res.y = a.y + b.y; in add()
57 return res; in add()
88 Float2 res = new Float2(); in add() local
89 res.x = a.x + b; in add()
90 res.y = a.y + b; in add()
92 return res; in add()
113 Float2 res = new Float2(); in sub() local
114 res.x = a.x - b.x; in sub()
115 res.y = a.y - b.y; in sub()
117 return res; in sub()
138 Float2 res = new Float2(); in sub() local
139 res.x = a.x - b; in sub()
140 res.y = a.y - b; in sub()
142 return res; in sub()
163 Float2 res = new Float2(); in mul() local
164 res.x = a.x * b.x; in mul()
165 res.y = a.y * b.y; in mul()
167 return res; in mul()
188 Float2 res = new Float2(); in mul() local
189 res.x = a.x * b; in mul()
190 res.y = a.y * b; in mul()
192 return res; in mul()
213 Float2 res = new Float2(); in div() local
214 res.x = a.x / b.x; in div()
215 res.y = a.y / b.y; in div()
217 return res; in div()
238 Float2 res = new Float2(); in div() local
239 res.x = a.x / b; in div()
240 res.y = a.y / b; in div()
242 return res; in div()