Lines Matching refs:p2
33 NN_MATH_INLINE VEC2* VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t);
34 NN_MATH_INLINE f32 VEC2Dot(const VEC2* p1, const VEC2* p2);
35 NN_MATH_INLINE VEC2* VEC2Maximize(VEC2* pOut, const VEC2* p1, const VEC2* p2);
36 NN_MATH_INLINE VEC2* VEC2Minimize(VEC2* pOut, const VEC2* p1, const VEC2* p2);
39 NN_MATH_INLINE f32 VEC2DistSq(const VEC2* p1, const VEC2* p2);
233 VEC2Add(VEC2* pOut, const VEC2* p1, const VEC2* p2) in VEC2Add() argument
237 NN_NULL_ASSERT( p2 ); in VEC2Add()
239 pOut->x = p1->x + p2->x; pOut->y = p1->y + p2->y; in VEC2Add()
253 VEC2Sub(VEC2* pOut, const VEC2* p1, const VEC2* p2) in VEC2Sub() argument
257 NN_NULL_ASSERT( p2 ); in VEC2Sub()
259 pOut->x = p1->x - p2->x; pOut->y = p1->y - p2->y; in VEC2Sub()
273 VEC2Mult(VEC2* pOut, const VEC2* p1, const VEC2* p2) in VEC2Mult() argument
275 pOut->x = p1->x * p2->x; in VEC2Mult()
276 pOut->y = p1->y * p2->y; in VEC2Mult()
311 VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t) in VEC2Lerp() argument
314 pOut->x = p1->x + t * (p2->x - p1->x); in VEC2Lerp()
315 pOut->y = p1->y + t * (p2->y - p1->y); in VEC2Lerp()
329 VEC2Dot(const VEC2* p1, const VEC2* p2) in VEC2Dot() argument
332 NN_NULL_ASSERT( p2 ); in VEC2Dot()
334 return p1->x * p2->x + p1->y * p2->y; in VEC2Dot()
370 VEC2DistSq(const VEC2* p1, const VEC2* p2) { VEC2 tmp; return VEC2LenSq(VEC2Sub(&tmp, p1, p2)); } in VEC2DistSq() argument
391 inline VEC2* VEC2Add(VEC2* pOut, const VEC2& p1, const VEC2& p2) { return VEC2Add(pOut, &p1, &p2); } in VEC2Add() argument