Lines Matching refs:res
48 Float2 res = new Float2(); in add() local
49 res.x = a.x + b.x; in add()
50 res.y = a.y + b.y; in add()
52 return res; in add()
83 Float2 res = new Float2(); in add() local
84 res.x = a.x + b; in add()
85 res.y = a.y + b; in add()
87 return res; in add()
108 Float2 res = new Float2(); in sub() local
109 res.x = a.x - b.x; in sub()
110 res.y = a.y - b.y; in sub()
112 return res; in sub()
133 Float2 res = new Float2(); in sub() local
134 res.x = a.x - b; in sub()
135 res.y = a.y - b; in sub()
137 return res; in sub()
158 Float2 res = new Float2(); in mul() local
159 res.x = a.x * b.x; in mul()
160 res.y = a.y * b.y; in mul()
162 return res; in mul()
183 Float2 res = new Float2(); in mul() local
184 res.x = a.x * b; in mul()
185 res.y = a.y * b; in mul()
187 return res; in mul()
208 Float2 res = new Float2(); in div() local
209 res.x = a.x / b.x; in div()
210 res.y = a.y / b.y; in div()
212 return res; in div()
233 Float2 res = new Float2(); in div() local
234 res.x = a.x / b; in div()
235 res.y = a.y / b; in div()
237 return res; in div()