Skip to content

Define proper and portable constants #151

@hollasch

Description

@hollasch

The current code base uses M_PI and MAXFLOAT. Both of these should be simple C++ constants defined somewhere. This may induce the need for a new common header (constants.h?).

Also note that MAXFLOAT, in addition to not being portable, also defines the maximum representable finite floating-point value. It should really be replaced with infinity (of the appropriate precision).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions