MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / cross_product

Function cross_product

dep/agg/include/agg_math.h:37–41  ·  view source on GitHub ↗

------------------------------------------------------------cross_product

Source from the content-addressed store, hash-verified

35
36 //------------------------------------------------------------cross_product
37 AGG_INLINE double cross_product(
38 double x1, double y1, double x2, double y2, double x, double y)
39 {
40 return (x - x2) * (y2 - y1) - (y - y2) * (x2 - x1);
41 }
42
43 //--------------------------------------------------------point_in_triangle
44 AGG_INLINE bool point_in_triangle(double x1,

Callers 6

calc_miterMethod · 0.85
calc_joinMethod · 0.85
prepareMethod · 0.85
point_in_triangleFunction · 0.85
dilate_triangleFunction · 0.85
prepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected