Discussion Sin/Cos?


Visitor (Welcome to the Jungle, Baby!)
I just found Warcraft 3's Sin and Cos function are weird.

Correct :

Tested Sin/Cos, both resulted same look.
Literate through 0->1440 for x and 300*scale for y-axis.
Any idea? :nuts:


Super Moderator
Staff member
Speaking of Radians, could someone please explain them to me?


Godspeed to the sound of the pounding
Radians are just another unit of measurement for angle.

Degrees break a full rotation up into 360 divisions, whereas 2(pi) radians complete a rotation. This is handy because circular measurements naturally depend on pi. For example, the length along the edge of a circular sector is simply radius*angle (in radians).


Visitor (Welcome to the Jungle, Baby!)
Perhaps I post the script for you all to test it. :p
library GraphViewer

    function interface GetY takes real x returns real
        private constant string Model = "Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl"
        private constant string AxisModel = "Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl"
        private GetY equation
        private timer t = CreateTimer()
        private real xD = 0.
        private real x = 0.
        private real s
    private function GenerateGraph takes nothing returns nothing
        if xD > 0. then
            set xD = xD - .07
            set x = x + .07
            call AddSpecialEffect(Model,x * s,equation.evaluate(x) * s)
            call PauseTimer(t)
    function ShowGraph takes GetY y, real times, real scale returns nothing
        set equation = y
        set xD = times * 2
        set s = scale
        set x = -times
        call TimerStart(t,0.0,true,function GenerateGraph)
    private struct Initializer extends array
        private static method onInit takes nothing returns nothing
            set xD = -2000.
            exitwhen xD >= 2000.
                call AddSpecialEffect(AxisModel,xD,0.)
                call AddSpecialEffect(AxisModel,0.,xD)
                set xD = xD + 100.

library MapInit initializer Init requires GraphViewer
    private function Equation takes real x returns real
        return 3 - x - (4 * x * x) //Equation of line
    //don't touch any thing below here.
    private function Init takes nothing returns nothing
        call FogEnable(false )
        call FogMaskEnable(false)
        call SetCameraField(CAMERA_FIELD_ZOFFSET,3000.,0.)
        call SetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK,270.,0.)
        call PanCameraTo(0.,0.)
        call ShowGraph(Equation,6.284,300.)


I'm still looking for my Tangent

I put in the symbol for pi in my post, but the forum thingy made it into a question mark, wtf!

Lemme' try again..



Godspeed to the sound of the pounding
Well, what're ya gonna do. :p

The worst part is that it (pi ? ?) displays correctly when hitting "Preview Post" but not in the post itself.


Is known to say things. That is all.
180 degree = 1 rad
1 degree = ~0.175rad or (pi / 180)
Let me bring it back!

180 degrees = pi radians, not 1 radian. 1 radian is defined as the angle formed from a sector of a circle where the radius of the circle = the arc length.


vJass errors are legion
My favorite is when I see noobs using the inlined versions of AngleBetweenPoints and PolarProjectionBJ, because you've got bj_RADTODEG to get the angle, and then a bj_DEGTORAD to utilize the angle :p
General chit-chat
Help Users
  • The Helper The Helper:
    Is that going to be a full game now tom?
  • The Helper The Helper:
    what is this Ghan? https://enterprise.ghannet.com/ you are totally holding out on us my friend
  • Ghan Ghan:
    Not mine, I just ran the server. They let the domain expire but it was a cool project so I kept it alive there.
  • Ghan Ghan:
    Used to be enterpriserpg.com I think.
  • The Helper The Helper:
    If you go to the world editor tutorials site and click the starcraft link it takes you there :)
  • Ghan Ghan:
  • Ghan Ghan:
    I forgot about that alias name. (The full URL still went to the correct site.) That should be fixed.
  • Ghan Ghan:
    Silkroad Forums site really needs help.
  • Ghan Ghan:
    Its software has been out of support since 2017.
  • Ghan Ghan:
    The woes of using custom styles....
  • The Helper The Helper:
    does anyone still use silk road forums?
  • Ghan Ghan:
    It's about as active as here I'd say. Not much going on.
  • Wizard Wizard:
    I think it doesn't help that the silk road game isn't as popular any more I think. The only MMO I play these days is FFXIV like most other people I know.
  • The Helper The Helper:
    I checked a status page for players and it says the game has 500 daily players.
  • The Helper The Helper:
    I cannot believe that site is still going I wonder if Ryoko is involved with it at all would love to talk to him again and see what he is up to
  • The Helper The Helper:
    my oldest daughter failed her driving test today for her license she is 22 and yes I have been driving her everywhere her whole life
  • The Helper The Helper:
    Now they are blaming me on Facebook for her failure LOL I am accepting it because it is my failure I am her driving teacher even though she had certified driving instruction from the best place in town I for some reason cannot teach her how to drive this is frustrating
  • jonas jonas:
    I didn't get my license until I was 25
  • The Helper The Helper:
    Back in the old days when I was getting a license people were getting them at 16 yrs old and many were getting hardships so they could get them earlier. Almost nobody did not drive when they were able. Nowadays though....
  • Ghan Ghan:
    Why drive when there's Uber Eats?
  • The Helper The Helper:
    I hope Varine is OK have not heard from him in a while.
  • Ghan Ghan:
    Diablo 2 Resurrected launching in 9 days.
  • The Helper The Helper:
    Just got a new to me computer hope it will run it
  • jonas jonas:
    I would buy if it had better modding support than D2, like a small lua script engine or much less hardcoded stuff

    Members online


    Hive Workshop NUON Dome