- disable implicit conversions from float to TAngle
This commit is contained in:
parent
8468f712e0
commit
f0fbdba593
66 changed files with 425 additions and 374 deletions
|
|
@ -1073,7 +1073,7 @@ CCMD(angleconvtest)
|
|||
Printf("Testing degrees to angle conversion:\n");
|
||||
for (double ang = -5 * 180.; ang < 5 * 180.; ang += 45.)
|
||||
{
|
||||
unsigned ang1 = DAngle(ang).BAMs();
|
||||
unsigned ang1 = DAngle::fromDeg(ang).BAMs();
|
||||
unsigned ang2 = (unsigned)(ang * (0x40000000 / 90.));
|
||||
unsigned ang3 = (unsigned)(int)(ang * (0x40000000 / 90.));
|
||||
Printf("Angle = %.5f: xs_RoundToInt = %08x, unsigned cast = %08x, signed cast = %08x\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue