Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cc.PI2 moved to CCMacro.js to make it more consistent with other constants #3554

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions cocos2d/core/CCDrawingPrimitivesCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
/**
* @const
* @type {number}
*/
cc.PI2 = Math.PI * 2;

/**
* Canvas of DrawingPrimitive implement version use for canvasMode
* @class
Expand Down
6 changes: 6 additions & 0 deletions cocos2d/core/platform/CCMacro.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ cc.INVALID_INDEX = -1;
*/
cc.PI = Math.PI;

/**
* @constant
* @type Number
*/
cc.PI2 = Math.PI * 2;

/**
* @constant
* @type Number
Expand Down