Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
Geometry.cpp File Reference
#include "precompiled.h"
#include "Geometry.h"
#include "maths/FixedVector2D.h"

Go to the source code of this file.

Functions

static bool SquareSAT (CFixedVector2D a, CFixedVector2D axis, CFixedVector2D u, CFixedVector2D v, CFixedVector2D halfSize)
 Separating axis test; returns true if the square defined by u/v/halfSize at the origin is not entirely on the clockwise side of a line in direction 'axis' passing through 'a'. More...
 

Function Documentation

static bool SquareSAT ( CFixedVector2D  a,
CFixedVector2D  axis,
CFixedVector2D  u,
CFixedVector2D  v,
CFixedVector2D  halfSize 
)
static

Separating axis test; returns true if the square defined by u/v/halfSize at the origin is not entirely on the clockwise side of a line in direction 'axis' passing through 'a'.

Definition at line 287 of file Geometry.cpp.