New answers tagged intersection
3
votes
Accepted
X axis intersection with inverted Y axis coordinates
This is way too complicated.
Let's say the screen center is at (0,0), the asteroid coords are x,...
0
votes
X axis intersection with inverted Y axis coordinates
const b2Vec2 point_b {aerolite_pos + delta_v};
...
slope = (point_b.y - aerolite_pos.y) / (point_b.x - aerolite_pos.x);
This is equivalent to:
...
2
votes
Determine if a triangle is on the screen
There are three kinds of positional relationship between two plane figures: disjoint, one inside the other, partial intersection. You need to check for partial intersection and one inside the other.
...
Top 50 recent answers are included
Related Tags
intersection × 96collision-detection × 24
mathematics × 17
c++ × 15
geometry × 14
raycasting × 12
physics × 9
3d × 9
vector × 8
c# × 7
algorithm × 7
2d × 5
xna × 5
unity × 4
java × 4
raytracing × 4
computational-geometry × 4
opengl × 3
libgdx × 3
shaders × 3
linear-algebra × 3
glsl × 2
hlsl × 2
terrain × 2
collision-resolution × 2