MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Intersect

Function Intersect

engine/Poseidon/Graphics/Rendering/Draw/ClipDraw.cpp:357–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357inline Coord Intersect(Vector3Par in, Vector3Par out, Vector3Par normal, Coord d)
358{
359 Vector3 AmB = in - out;
360 return (in * normal + d) / (AmB * normal);
361}
362
363bool PolyVertices::Clip(TLVertexTable& mesh, PolyVertices& res, Vector3Par normal, Coord d, ClipFlags test,
364 const Camera& camera)

Callers 5

ClipMethod · 0.70
SplitMethod · 0.70
IntersectMethod · 0.50
AvoidCollisionMethod · 0.50
IsInsideMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected