Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 4, 2024
1 parent c0d515e commit 47c9350
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions experiments/2024-10-30/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,7 @@ impl Renderer {
let ab = b - a;
let ac = c - a;

Vec3::new(
ab.y * ac.z - ab.z * ac.y,
ab.z * ac.x - ab.x * ac.z,
ab.x * ac.y - ab.z * ac.x,
)
ab.cross(ac)
};

for point in triangle {
Expand Down

0 comments on commit 47c9350

Please sign in to comment.