Skip to content

Commit

Permalink
Another attempt to fix math rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
anshium committed Jan 12, 2024
1 parent 462a3b2 commit 87ed078
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cg_codebase.md
Original file line number Diff line number Diff line change
Expand Up @@ -676,15 +676,19 @@ Here, we are finding using past principles, the intersection of a ray to the poi

We have the equations:

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

$$and$$

$$(\vec x - \vec p) \cdot \vec n = 0$$
```math
r(t) = \vec o + t \vec d
``````
```and```
```math
(\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}$$
```math
t = - \frac{(\vec o - \vec p) \cdot \vec n}{\vec d \cdot \vec n}
```

Explain this:
```cpp
Expand Down

0 comments on commit 87ed078

Please sign in to comment.