تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > utils > التنسيق > المجموع
طريقة utils.Coordinate.sum()
لعرض مجموع الإحداثيات كإحداثيات جديدة.
Signature:
static sum(a: Coordinate | SVGPoint, b: Coordinate | SVGPoint): Coordinate;
المعلمات
| المعلمة |
النوع |
الوصف |
| a |
التنسيق | SVGPoint |
إحداثي س/ص. |
| b |
التنسيق | SVGPoint |
إحداثي س/ص. |
المرتجعات:
التنسيق
إحداثيات تمثل مجموع الإحداثيات.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],["The `utils.Coordinate.sum()` method calculates the sum of two coordinates. It accepts two parameters, `a` and `b`, which can each be either a `Coordinate` or an `SVGPoint`. This static method adds the x and y values of the two input coordinates. It returns a new `Coordinate` object that represents the combined sum of the two input coordinates. This allows to easily sum coordinates, no matter their type.\n"]]