brangerbriz / liBB.js

A JavaScript library/framework for creating interactive && generative apps + installations in/out of the browser
http://libb.brangerbriz.com/
GNU General Public License v3.0
1 stars 2 forks source link

BB.MathUtils: long names... #15

Closed nbriz closed 7 years ago

nbriz commented 8 years ago

i know i've brought this up b4, but it's getting to me agian, as i put example's together for docs it's becoming hard to read b/c how long BB.MathUtils is... kinda wanna rename lots of it to get it down O_o

BB.MathUtils.randomInt();
BB.Util.ranInt();
//
BB.MathUtils.polarToCartesian();
BB.Util.pol2cart(); 
// kinda like color.hsv2rgb

we kinda already have this going on a bit with degToRad ( instead of having said degreesToRadians, though we could make that even more consistent && make it deg2rad ; ), maybe we could also make aliases? short && long versions for each method? is that too much?

i realize we talked about the word "math" needing to be in there b/c in theory we may have other utils, but at th emoment it's the only utils ++ we can make math the default utils && if we make others they can be labeled ( ie: math would just be BB.Util + any others would be BB.SpecificUtil )... what do u think @brannondorsey ??

nbriz commented 7 years ago

...not so bad now that MathUtils is just Maths