view dynamin/core/math.d @ 111:8ba1044adc93

Rename Newline.Macintosh/Linux to better names. CR is not used on Mac since before OS X. And LF is not just used on Linux, but other Unix systems too.
author Jordan Miner <jminer7@gmail.com>
date Sat, 19 Jan 2013 20:57:11 -0600
parents 73060bc3f004
children
line wrap: on
line source


/*
 * Copyright Jordan Miner
 *
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file BOOST_LICENSE.txt or copy at
 * http://www.boost.org/LICENSE_1_0.txt)
 *
 */

module dynamin.core.math;

public import tango.math.Math;

///
alias PI Pi; // about 3

///
bool isOdd(T)(T x) { return cast(bool)(x & 1); }