[Math] RemapValue

About Monkey 2 Forums Monkey 2 Code Library [Math] RemapValue

This topic contains 2 replies, has 2 voices, and was last updated by  cocon 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8791

    cocon
    Participant

    This is a very important and useful function that will allow you to remap a value from the source range to the target range.

    Some examples of using would be for converting float values 0..1 to bytes, or when dealind with joystick input -1..1 to a game value n..n, etc.

     

    #12295

    nerobot
    Participant

    Formatting of the post is broken.

    #12299

    cocon
    Participant

    Thanks for mentioning it, I removed the “grave accent” character from doc variables.

    (Probably I will have to scroll my posts and fix them all 🙂 )

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.