X-Perl UnitFrames

62 - Minimap button rotates in radians

What steps will reproduce the problem?
1. Drag the minimap button
2.
3.

What is the expected output? What do you see instead?
It should drag smoothly with what's given.

What version of the product are you using?
3.0.1d

Do you have an error log of what happened?
No errors are shown, but the rotation looks like radians and not degrees.

Please provide any additional information below.
XPerl/XPerl.lua:81
local cos, sin, abs = math.cos math.sin math.abs

The math library functions operate in radians, but the config values are all in degrees.

Should it be?
local function cos(deg)
  return math.cos(math.rad(deg))
end
local function sin(deg)
  return math.sin(math.rad(deg))
end

User When Change
Zeksie Aug 07, 2009 at 17:16 UTC Changed status from New to Fixed
scorpie5 Oct 30, 2008 at 21:19 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of scorpie5 scorpie5 Oct 31, 2008 at 02:26 UTC - 0 likes

    But I guess masking what was there earlier in the file did it.

  • Avatar of Zeksie Zeksie Oct 31, 2008 at 00:54 UTC - 0 likes

    Ahh, but I did mask the old versions of sin/cos.. So half a point for that :)

  • Avatar of Zeksie Zeksie Oct 31, 2008 at 00:52 UTC - 0 likes

    That rotate function has nothing at all to do with the minimap button. That's for rotating textures.

  • 3 comments

Facts

Last updated
Aug 07, 2009
Reported
Oct 30, 2008
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees