Skip to content

Commit

Permalink
Fix math rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
anshium committed Jan 12, 2024
1 parent b2d329e commit 462a3b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cg_codebase.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,15 @@ Interaction Surface::rayPlaneIntersect(Ray ray, Vector3f p, Vector3f n)
Here, we are finding using past principles, the intersection of a ray to the point.

We have the equations:

$$r(t) = \vec o + t \vec d $$

$$and$$

$$(\vec x - \vec p) \cdot \vec n = 0$$

Solving for t, we get:

$$t = - \frac{(\vec o - \vec p) \cdot \vec n}{\vec d \cdot \vec n}$$

Explain this:
Expand Down

0 comments on commit 462a3b2

Please sign in to comment.