From 87ed078cb01e2373937570517fff6d25d46925e6 Mon Sep 17 00:00:00 2001 From: anshium Date: Fri, 12 Jan 2024 10:41:08 +0530 Subject: [PATCH] Another attempt to fix math rendering --- cg_codebase.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/cg_codebase.md b/cg_codebase.md index 7266e23..bb16a5b 100644 --- a/cg_codebase.md +++ b/cg_codebase.md @@ -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