#include "d3dx9.h"


Functions | |
| float | distance2 (D3DXVECTOR3 p, D3DXVECTOR3 s) |
| Useful function for calculating float distance between two vector points. | |
| float | facePoint (D3DXVECTOR3 objpoint, D3DXVECTOR3 point) |
| angle for object to face toward given point | |
| bool | CloseToSheep (D3DXVECTOR3 from, D3DXVECTOR3 to) |
| determines if object is close to another object (sheep) | |
| bool | ReachedSheep (D3DXVECTOR3 from, D3DXVECTOR3 to) |
| determines if object is touching close to another object (sheep) | |
| void | GetRandomVectorCircle (D3DXVECTOR3 *out, float radius) |
| Returns random 3D vector in the circle on the floor with given radius. | |
| float | GetRandomFloat (float lowBound, float highBound) |
| Returns random float between given bounds. | |
| bool CloseToSheep | ( | D3DXVECTOR3 | from, | |
| D3DXVECTOR3 | to | |||
| ) |
determines if object is close to another object (sheep)
| float distance2 | ( | D3DXVECTOR3 | p, | |
| D3DXVECTOR3 | s | |||
| ) |
Useful function for calculating float distance between two vector points.
| float facePoint | ( | D3DXVECTOR3 | objpoint, | |
| D3DXVECTOR3 | point | |||
| ) |
angle for object to face toward given point
| objpoint | position of object | |
| point | point where object is looking at |
| float GetRandomFloat | ( | float | lowBound, | |
| float | highBound | |||
| ) |
Returns random float between given bounds.
| void GetRandomVectorCircle | ( | D3DXVECTOR3 * | out, | |
| float | radius | |||
| ) |
Returns random 3D vector in the circle on the floor with given radius.
| bool ReachedSheep | ( | D3DXVECTOR3 | from, | |
| D3DXVECTOR3 | to | |||
| ) |
determines if object is touching close to another object (sheep)
1.5.3