To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10408
10407  |  10409
Subject: 
Re: Simple Maths Help Needed
Newsgroups: 
lugnet.cad.dev
Date: 
Sat, 4 Feb 2006 23:50:13 GMT
Viewed: 
2269 times
  
This is very simple, I know, but I insist on doing it wrong every time!
So, I have to humble myself and ask for the formula for this quite basic
implementation.

I think what you want is:

value = start_value + ((end_value - start_value) * (Progress - from) / (to -
from))

HTH

ROSCO

Oh, how close I was, and yet... Thanks a lot, Rosco!

/Tore



Message has 1 Reply:
  Re: Simple Maths Help Needed
 
(...) There is another way ;) (Start_value*(to-Pro.../(to-from) Is nice and symmetric and more numerically stable. Tim (19 years ago, 5-Feb-06, to lugnet.cad.dev)

Message is in Reply To:
  Re: Simple Maths Help Needed
 
(...) I think what you want is: value = start_value + ((end_value - start_value) * (Progress - from) / (to - from)) HTH ROSCO (19 years ago, 4-Feb-06, to lugnet.cad.dev)

5 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR