Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ______________________ _______ ________ ___ ___
- * \__ ___/\_ _____/ \ \ / _____/| | | \
- * | | | __)_ / | \/ \ ___| | | |
- * | | | \/ | \ \_\ \ |_| |
- * |____| /_______ /\____|__ /\______ /________/
- * Game Engine. \/ \/ \/
- *
- * (c) 8BitPimp (2013)
- */
- #include "common.h"
- //
- struct sRayBox
- {
- // ray
- float x1, y1;
- float x2, y2;
- // box
- float bx, by;
- float bw, bh;
- // intersection
- float ix, iy;
- };
- //
- // if [x1,y1] lies inside the box then this will fail
- //
- //
- extern bool intersect_line_box
- (
- sRayBox *i
- );
- //
- extern bool intersect_ray_box
- (
- sRayBox *i
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement