Pixel-Composer/scripts/cross_product/cross_product.gml

9 lines
171 B
Text
Raw Normal View History

2023-01-25 06:49:00 +01:00
function cross_product(x0, y0, x1, y1, x2, y2) {
var X1 = x1 - x0;
var Y1 = y1 - y0;
var X2 = x2 - x0;
var Y2 = y2 - y0;
return (X1 * Y2 - Y1 * X2);
}