mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-16 07:23:52 +01:00
9 lines
171 B
Plaintext
9 lines
171 B
Plaintext
|
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);
|
||
|
}
|