mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-03 06:44:56 -04:00
-tan(float) was crashing under VS2013 with large numbers so replace with SafeTan<T>().
-Put about dialog in the center of the screen. A Qt upgrade somehow moved it to the side.
This commit is contained in:
@ -187,8 +187,8 @@ public:
|
||||
{
|
||||
T u = sqrt(ClampGte0<T>(Zeps(m_A) * SQR(helper.In.x) + Zeps(m_B) * SQR(helper.In.y)));//Original did not clamp.
|
||||
|
||||
helper.Out.x = cos(u) * tan(helper.In.x) * m_Weight;
|
||||
helper.Out.y = sin(u) * tan(helper.In.y) * m_Weight;
|
||||
helper.Out.x = cos(u) * SafeTan<T>(helper.In.x) * m_Weight;
|
||||
helper.Out.y = sin(u) * SafeTan<T>(helper.In.y) * m_Weight;
|
||||
helper.Out.z = m_Weight * helper.In.z;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user