সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্লকলি > ConnectionDB > searchForClosest
ConnectionDB.searchForClosest() পদ্ধতি
এই সংযোগের নিকটতম সামঞ্জস্যপূর্ণ সংযোগ খুঁজুন।
স্বাক্ষর:
searchForClosest(conn: RenderedConnection, maxRadius: number, dxy: Coordinate): {
connection: RenderedConnection | null;
radius: number;
};
পরামিতি
| প্যারামিটার | টাইপ | বর্ণনা |
|---|
| conn | রেন্ডারড কানেকশন | সংযোগ একটি সামঞ্জস্যপূর্ণ সঙ্গীর জন্য অনুসন্ধান. |
| maxRadius | সংখ্যা | অন্য সংযোগের সর্বোচ্চ ব্যাসার্ধ। |
| dxy | সমন্বয় | ডাটাবেসে এই সংযোগের অবস্থান এবং বর্তমান অবস্থানের মধ্যে অফসেট (টেনে আনার ফলে)। |
রিটার্ন:
{ সংযোগ: RenderedConnection | শূন্য; ব্যাসার্ধ: সংখ্যা; }
দুটি বৈশিষ্ট্য রয়েছে: 'সংযোগ' যা হয় অন্য সংযোগ বা শূন্য, এবং 'ব্যাসার্ধ' যা দূরত্ব।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The `searchForClosest()` method in `ConnectionDB` locates the nearest compatible connection. It takes a `RenderedConnection` (`conn`), a `maxRadius` (number), and a `Coordinate` (`dxy`) for location offset as parameters. It returns an object containing two properties: `connection`, which is either a found `RenderedConnection` or `null`, and `radius`, the distance to the found connection. The method identifies the closest matching connection within the defined radius.\n"]]