Lines Matching refs:p2
44 NN_MATH_INLINE VEC2* VEC2Add(VEC2* pOut, const VEC2* p1, const VEC2* p2);
54 NN_MATH_INLINE f32 VEC2DistSq(const VEC2* p1, const VEC2* p2);
64 NN_MATH_INLINE f32 VEC2Dot(const VEC2* p1, const VEC2* p2);
103 NN_MATH_INLINE VEC2* VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t);
114 NN_MATH_INLINE VEC2* VEC2Maximize(VEC2* pOut, const VEC2* p1, const VEC2* p2);
125 NN_MATH_INLINE VEC2* VEC2Minimize(VEC2* pOut, const VEC2* p1, const VEC2* p2);
136 NN_MATH_INLINE VEC2* VEC2Mult(VEC2* pOut, const VEC2* p1, const VEC2* p2);
180 NN_MATH_INLINE VEC2* VEC2Sub(VEC2* pOut, const VEC2* p1, const VEC2* p2);
410 VEC2Add(VEC2* pOut, const VEC2* p1, const VEC2* p2) in VEC2Add() argument
414 NN_NULL_ASSERT( p2 ); in VEC2Add()
416 pOut->x = p1->x + p2->x; pOut->y = p1->y + p2->y; in VEC2Add()
421 VEC2Sub(VEC2* pOut, const VEC2* p1, const VEC2* p2) in VEC2Sub() argument
425 NN_NULL_ASSERT( p2 ); in VEC2Sub()
427 pOut->x = p1->x - p2->x; pOut->y = p1->y - p2->y; in VEC2Sub()
432 VEC2Mult(VEC2* pOut, const VEC2* p1, const VEC2* p2) in VEC2Mult() argument
434 pOut->x = p1->x * p2->x; in VEC2Mult()
435 pOut->y = p1->y * p2->y; in VEC2Mult()
451 VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t) in VEC2Lerp() argument
454 pOut->x = p1->x + t * (p2->x - p1->x); in VEC2Lerp()
455 pOut->y = p1->y + t * (p2->y - p1->y); in VEC2Lerp()
460 VEC2Dot(const VEC2* p1, const VEC2* p2) in VEC2Dot() argument
463 NN_NULL_ASSERT( p2 ); in VEC2Dot()
465 return p1->x * p2->x + p1->y * p2->y; in VEC2Dot()
479 VEC2DistSq(const VEC2* p1, const VEC2* p2) { VEC2 tmp; return VEC2LenSq(VEC2Sub(&tmp, p1, p2)); } in VEC2DistSq() argument
496 inline VEC2* VEC2Add(VEC2* pOut, const VEC2& p1, const VEC2& p2) { return VEC2Add(pOut, &p1, &p2); } in VEC2Add() argument