จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > utils > Coordinate > scale
เมธอด utils.Coordinate.scale()
ปรับขนาดพิกัดนี้ตามค่าตัวคูณมาตราส่วนที่ระบุ
ลายเซ็น:
scale(s: number): Coordinate;
พารามิเตอร์
| พารามิเตอร์ |
ประเภท |
คำอธิบาย |
| s |
ตัวเลข |
ตัวคูณมาตราส่วนที่จะใช้กับทั้งมิติข้อมูล x และ y |
การคืนสินค้า:
พิกัด
พิกัดนี้หลังจากการปรับขนาด
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],["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"]]