History

fixed VERSIONS and typos in ulib_math.cpp

Ge Wang committed 3 years ago

Commit f01acaf1 parent 25076b72 files · +10 −5Browse files

Showing the changes to notes (1 of 2 files). Show all

Unified · Split

notes/VERSIONS+7−2
@@ -46,8 +46,13 @@ to be in BETA for some time (as we add more and also teach using chAI in · 45 unmodified lines
4646 - (added) Math functions
4747 float map( float value, float x1, float y1,
4848 float x2, float y2 );
49− Map 'value' from range [x1,y1] into range [x2,y2];
50− 'value' will be clamped to [x1,y1] if outside range.
49+ Map 'value' from range [x1,y1] into range [x2,y2]; 'value'
50+ can be outside range[x1,y1].
51+ float map2( float value, float x1, float y1,
52+ float x2, float y2 );
53+ Map 'value' from range [x1,y1] into range [x2,y2]; 'value'
54+ will be clamped to [x1,y1] if outside range.
55+ (Math.remap() is the same as Math.map2())
5156 float clampi( int value, int min, int max );
5257 Clamp integer 'value' to range [min, max].
5358 float clampf( float value, float min, float max );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t