samskivert / pythagoras

A portable library of geometry classes for Java
Apache License 2.0
44 stars 14 forks source link

FloatMath.{max,min} #8

Closed mmastrac closed 12 years ago

mmastrac commented 12 years ago

The lack of a float-typed max/min in Math is somewhat annoying. Would be great to have them in pythagoras' FloatMath.

mmastrac commented 12 years ago

Ugh, I don't know why I didn't see the working float versions of min/max in stock Math. Ignore this issue, PBCAK.

samskivert commented 12 years ago

On Tue, Jan 10, 2012 at 3:23 PM, Matt Mastracci < reply@reply.github.com

wrote:

The lack of a float-typed max/min in Math is somewhat annoying. Would be great to have them in pythagoras' FloatMath.

There is a float-typed max/min in Math, no?

http://docs.oracle.com/javase/1.3/docs/api/java/lang/Math.html#max(float, float)

-- mdb@samskivert.com

mmastrac commented 12 years ago

Yep, it was a mistake on my end. I'm getting so used to using FloatMath now that stock Math trips me up. Apologies.