Snippet OffsetUnitReals

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
how are these bjs they are created by me not blizzard

When he said BJ function, he was referring to the concept, not that your functions were part of blizzard.j.

In general, the functions in blizzard.j are near useless; some simply call a native, some leak handles, some don't do anything (see DoNothing).

The idea is that these functions are useless. Their only point is to improve readability (and some don't even do that), or simply for compatability/use in GUI.

He is saying your functions are not helpful, they don't do anything useful or big enough to warrant an extra function call.

i see no reason to graveyard this when its not even released properly yet

Again, as was said above, this is in the graveyard because you posted it in the submissions, and it was found to be not useful. The graveyard does not mean gone forever, it simply means it needs work, is not useful, or is outdated.

I would be appalled if anything like this were to get through the mods, and into the systems/snippets section. Perhaps this is why you are not a mod, and Romek is.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
well this has been helpful to me since i tend to forget the formula and have to refer back to the thread where i asked it.
 

Romek

Super Moderator
Reaction score
963
..What formula is there to forget, that this helps remember? o_O
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
yea what he said. I forget that formulas with the cos and sin
 

cleeezzz

The Undead Ranger.
Reaction score
268
JASS:

function PolarProjectionX takes real x, real distance, real angle returns real
    return x+distance*Cos(angle)
endfunction

function PolarProjectionY takes real y, real distance, real angle returns real
    return y+distance*Sin(angle)
endfunction


those should help you better than the system
 

Romek

Super Moderator
Reaction score
963
If you've forgotten the formula, doing a search in the function list for "PolarProjection" (or simply "Polar") wouldn't hurt.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
no i mean the entire formula and in the right place
 

Romek

Super Moderator
Reaction score
963
...What?
I promise you that PolarProjectionBJ hasn't got the wrong formula.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
bhaa then why does no one use it?? And im talking about the formula my snippet has
 

Romek

Super Moderator
Reaction score
963
> bhaa then why does no one use it?? And im talking about the formula my snippet has
Everybody who uses GUI, uses that BJ.
It uses locations instead of reals.
But really, that's only replacing GetLocationX/Y with GetUnitX/Y in your case.

...It's the same 'formula'. It's basic trigonometry. Your snippet isn't the first thing in the world to use cos/sin, trust me.
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Because PolarProjection takes and returns a location, which is highly inefficient.

Beaten..
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
> bhaa then why does no one use it?? And im talking about the formula my snippet has
Everybody who uses GUI, uses that BJ.
It uses locations instead of reals.
But really, that's only replacing GetLocationX/Y with GetUnitX/Y in your case.

...It's the same 'formula'. It's basic trigonometry. Your snippet isn't the first thing in the world to use cos/sin, trust me.


I didnt say its the firts to use sin and coz its just to make the use easier thats all
 

Azlier

Old World Ghost
Reaction score
461
Honestly, I hate this. It is an inefficient way to "easily" do some easy-to-remember formulas. Some functions that don't inline really should.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top