CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 18:55:10 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=21900359ffd5b6a1f2e519c2a14a612f215cb93e313ed3067f8cc5c9d3c8f2afa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%228cS6lwXEddDLpyCxnKHR9zo7l_Sm-p2c%22%3B%7D; HttpOnly; Path=/
cf-ray: 98c85498195cc16d-BLR
Simba 2.0 - four point compass angle solve - Pastebin.com
SHARE
TWEET

Simba 2.0 - four point compass angle solve
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (*
- This is about as accurate as we can get with the tiny OSRS compass
- Takes into account N,W,S and E dials to compute an average angle to counter NN pixelation.
- *)
- function CompassAngle(): Single;
- var
- middle: TPoint := [Target.Width-160,22];
- bounds: TBox := Box(middle, 14, 14);
- north,south,west,east: TPoint;
- Nclr, dials, southarr, westarr, eastarr: TPointArray;
- n,w,e,s,x,y: Single;
- begin
- dials := Target.FindColor(920735, 1, bounds);
- Nclr := Target.FindColor(1911089, 1, bounds);
- dials := dials.ExtractDist(middle, 10,9999);
- north := Nclr.ExtractDist(middle, 0,20).Mean();
- southarr := dials.ExtractDist(north, 20,9999);
- south := southarr.FurthestPoint(middle);
- dials := dials.Remove(southarr);
- for dials in dials.Cluster(3) do
- if CrossProduct(dials.Mean(), north, south) > 0 then
- westarr := dials
- else
- eastarr := dials;
- west := westarr.FurthestPoint(eastarr.Mean()); //late edit: Should not this be middle, not eastarr.mean
- east := eastarr.FurthestPoint(westarr.Mean()); //late edit: Should not this be middle, not westarr.mean
- n := ArcTan2(north.y-middle.y, north.x-middle.x)+PI/2;
- s := ArcTan2(south.y-middle.y, south.x-middle.x)-PI/2;
- w := ArcTan2(west.y-middle.y, west.x-middle.x)+PI;
- e := ArcTan2(east.y-middle.y, east.x-middle.x);
- x := Cos(s) + Cos(e) + Cos(w) + Cos(n);
- y := Sin(s) + Sin(e) + Sin(w) + Sin(n);
- Result := RadToDeg(ArcTan2(y/4, x/4));
- if Result < 0 then Result := Result + 360;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 1 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ R
JavaScript | 9 sec ago | 0.24 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 13 sec ago | 0.10 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ B
JavaScript | 20 sec ago | 0.24 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 24 sec ago | 0.10 KB
-
⭐⭐Exchange Exploit⭐⭐ Y
JavaScript | 31 sec ago | 0.24 KB
-
⭐⭐⭐Swapzone.io Glitch (Working)⭐⭐
Java | 36 sec ago | 0.10 KB
-
✅⭐ Make huge profits on trading ⭐⭐ I
JavaScript | 42 sec ago | 0.24 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