Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
Geometry.h File Reference

Helper functions related to geometry algorithms. More...

#include "maths/Fixed.h"
#include "maths/MathUtil.h"

Go to the source code of this file.

Namespaces

 Geometry
 

Functions

bool Geometry::PointIsInSquare (CFixedVector2D point, CFixedVector2D u, CFixedVector2D v, CFixedVector2D halfSize)
 Checks if a point is inside the given rotated square or rectangle. More...
 
CFixedVector2D Geometry::GetHalfBoundingBox (CFixedVector2D u, CFixedVector2D v, CFixedVector2D halfSize)
 
fixed Geometry::DistanceToSquare (CFixedVector2D point, CFixedVector2D u, CFixedVector2D v, CFixedVector2D halfSize)
 
float Geometry::ChordToCentralAngle (const float chordLength, const float radius)
 Given a circle of radius radius, and a chord of length chordLength on this circle, computes the central angle formed by connecting the chord's endpoints to the center of the circle. More...
 
CFixedVector2D Geometry::NearestPointOnSquare (CFixedVector2D point, CFixedVector2D u, CFixedVector2D v, CFixedVector2D halfSize)
 Find point closest to the given point on the edge of the given square or rectangle. More...
 
bool Geometry::TestRaySquare (CFixedVector2D a, CFixedVector2D b, CFixedVector2D u, CFixedVector2D v, CFixedVector2D halfSize)
 
bool Geometry::TestRayAASquare (CFixedVector2D a, CFixedVector2D b, CFixedVector2D halfSize)
 
bool Geometry::TestSquareSquare (CFixedVector2D c0, CFixedVector2D u0, CFixedVector2D v0, CFixedVector2D halfSize0, CFixedVector2D c1, CFixedVector2D u1, CFixedVector2D v1, CFixedVector2D halfSize1)
 

Detailed Description

Helper functions related to geometry algorithms.

Definition in file Geometry.h.