Results 1 to 3 of 3

Thread: Lerp2 purpose ?

  1. #1
    Member DirectuX's Avatar
    Join Date
    Oct 2018
    Location
    France
    Posts
    417
    Rep Power
    55

    Question Lerp2 purpose ?

    According to the man page, Lerp and Lerp2 have the same formula. What is the purpose of the second Lerp ?
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Lerp function differ from Lerp2 function only for the sequence of the parameters.

    The only script I'm aware where Lerp function is used is inside this great example:
    https://www.thinbasic.com/community/...ght=GimbalRock
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Member DirectuX's Avatar
    Join Date
    Oct 2018
    Location
    France
    Posts
    417
    Rep Power
    55
    Quote Originally Posted by ErosOlmi View Post
    Lerp function differ from Lerp2 function only for the sequence of the parameters.

    The only script I'm aware where Lerp function is used is inside this great example:
    https://www.thinbasic.com/community/...ght=GimbalRock

    I understand then, that Lerp2 exists for code readability convenience.
    Thanks Eros.

    PS, great example indeed.
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

Similar Threads

  1. General Purpose Eval
    By JosephE in forum Eval
    Replies: 15
    Last Post: 10-05-2011, 21:31
  2. What's the purpose of this line in the Tutorial App?
    By marcuslee in forum thinBasic tutorials
    Replies: 5
    Last Post: 24-11-2009, 16:50

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •