रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > utils > निर्देशांक > स्केल
utils.CoorDine.Scale() तरीका
इस निर्देशांक को दिए गए स्केल फ़ैक्टर से स्केल करता है.
हस्ताक्षर:
scale(s: number): Coordinate;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
s |
संख्या |
x और y, दोनों डाइमेंशन के लिए इस्तेमाल किया जाने वाला स्केल फ़ैक्टर. |
लौटाए जाने वाले प्रॉडक्ट:
कोऑर्डिनेट करें
स्केलिंग के बाद यह निर्देशांक.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया."],[[["The `scale()` method adjusts a Coordinate object's x and y values by multiplying them with a provided scale factor."],["It takes one argument: a numerical scale factor ( `s` ) applied to both x and y coordinates."],["The method returns the modified Coordinate object, allowing for method chaining."]]],["The `scale` method, part of the `Coordinate` class within the `utils` namespace, scales a coordinate. It accepts a single numerical parameter, `s`, which represents the scale factor applied to both the x and y dimensions. The method modifies the coordinate and returns the scaled `Coordinate` object. The `s` parameter determines how much larger or smaller the coordinate will become.\n"]]