I have the following problem that I am unable to solve, even after a long search on the internet.
How calculates the intersection of the plane in ray?
The plane is described by four points:
A (ax, ay, 0)
B (bx, by, 0)
C (cx, cy, 0)
D (dx, dy, 0)
Ray have:
Vector3f origin;
Vector3f direction;
And now, i want write a method for checking HIT. Could someone show me a solution?
public Boolean checkHit(Ray myRay){
.
.
.
}
Thank you