From 5dee2731e6fb3deb2c44e269d12c2b7db62c74cb Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 7 Jun 2012 13:35:23 +0200 Subject: Finished implementation of math functions --- src/math/func.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/math/func.h') diff --git a/src/math/func.h b/src/math/func.h index ef90800..79f43c1 100644 --- a/src/math/func.h +++ b/src/math/func.h @@ -1,4 +1,5 @@ // * This file is part of the COLOBOT source code +// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch // * Copyright (C) 2012, Polish Portal of Colobot (PPC) // * // * This program is free software: you can redistribute it and/or modify @@ -166,16 +167,6 @@ inline float Direction(float a, float g) return g-a; } -//! Returns the angle between point (x,y) and (0,0) -float RotateAngle(float x, float y) -{ - float result = std::atan2(x, y); - if (result < 0) - result = PI_MUL_2 + result; - - return result; -} - //! Returns a random value between 0 and 1. inline float Rand() { -- cgit v1.2.3-1-g7c22