1 2 3 4 5 6 7 8 9 10 | inline bool32 IsInRectangle(rectangle3 Rectangle, v3 Test) { bool32 Result = ((Test.X >= Rectangle.Min.X) && (Test.Y >= Rectangle.Min.Y) && (Test.X < Rectangle.Max.X) && (Test.Y < Rectangle.Max.Y)); return(Result); } |
And a small question: wouldn't it be good to rename dp and ddp to velocity and acceleration ? I'm never directly sure of which is which and in the last stream you mistook them for each other at some point.