CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 07:50:50 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=c001fef0003ecd7f2d1acd195241714e92785874a60e8f5e0c6ba2e790b1cf0ca%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22CjHP8vucf8uBVpQ0-GcGRn3UpdavI0pu%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d502352cf6c177-BLR
const DistToLineEx = (p, sA, sB) => { let dx, dy, d let f let result = - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const DistToLineEx = (p, sA, sB) => {
- let dx, dy, d
- let f
- let result = { nearest: {}, result: 0 }
- result.nearest.x = sA.x
- result.nearest.y = sA.y
- dx = sB.x - sA.x
- dy = sB.y - sA.y
- d = dx * dx + dy * dy
- if (d === 0) {
- result.result = Math.hypot(p.x - sA.x, p.y - sA.y)
- return result
- }
- f = ((p.x - sA.x) * dx + (p.y - sA.y) * dy) / d
- if (f < 0) {
- result.result = Math.hypot(p.x - sA.x, p.y - sA.y)
- } else if (f > 1) {
- result.nearest = sB
- result.result = Math.hypot(p.x - sB.x, p.y - sB.y)
- }
- result.nearest.x = Math.round(sA.x + f * dx)
- result.nearest.y = Math.round(sA.y + f * dy)
- result.result = Math.hypot(p.x - result.nearest.x, p.y - result.nearest.y)
- return result
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ 2
JavaScript | 3 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 11 sec ago | 0.10 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 13 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ M
JavaScript | 22 sec ago | 0.25 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 22 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 31 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 33 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ U
JavaScript | 40 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand