MCPcopy Create free account
hub / github.com/admtrv/objcurses / normal

Method normal

entities/rendering/buffer.cpp:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63Vec3 Projection::normal() const
64{
65 const Vec3 v1 = p2 - p1;
66 const Vec3 v2 = p3 - p1;
67 const Vec3 n = Vec3::cross(v1, v2);
68
69 return n.normalize();
70}
71
72// Buffer methods
73

Callers 1

draw_projectionMethod · 0.45

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected