Ejemplo n.º 1
0
 public function testDegToRad()
 {
     $this->assertTrue(CMathf::equalsZt(CMathf::degToRad(0.0), 0.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::degToRad(90.0), CMathf::HALF_PI));
     $this->assertTrue(CMathf::equalsZt(CMathf::degToRad(180.0), CMathf::PI));
     $this->assertTrue(CMathf::equalsZt(CMathf::degToRad(360.0), CMathf::PI * 2));
     $this->assertTrue(CMathf::equalsZt(CMathf::degToRad(90), CMathf::HALF_PI));
 }