blockly > utils > Współrzędne > różnica
Metoda utils.Coordinate.difference()
Zwraca różnicę między 2 współrzędnymi jako nową współrzędną.
Podpis:
static difference(a: Coordinate | SVGPoint, b: Coordinate | SVGPoint): Coordinate;
Parametry
Zwroty:
Współrzędne
Współrzędne reprezentujące różnicę między a
a b
.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["The `utils.Coordinate.difference()` method calculates the difference between two coordinates (`a` and `b`)."],["It accepts either `Coordinate` or `SVGPoint` objects as input for both coordinates."],["The method returns a new `Coordinate` object representing the difference between the input coordinates."]]],[]]