Latest Changes

Differences between version #6820 and #6827

2,3c2,4
< public static function lEquation (x1:Float, x2:Float, y0:Float, y1:Float, y2:Float) :Float {
< 	return (x2 - x1) * (y0 - y1) / (y2 - y1) + x1;
---
> // Initial function modified by the suggestions of Franco Ponticelli
> public static inline function lineEquation(x1 : Float, x2 : Float, y0 : Float, y1 : Float, y2 : Float) {
>         return (x2 - x1) * (y0 - y1) / (y2 - y1) + x1;
4a6,8
> public static inline function lineEquationInt(x1 : Float, x2 : Float, y0 : Float, y1 : Float, y2 : Float) {
>         return Math.round(lineEquation(x1, x2, y0, y1, y2));
> }
9c13
< <code haxe>progressBar.width = lEquation (0, 530, percent, 0, 100);</code>
---
> <code haxe>progressBar.width = lineEquation (0, 530, percent, 0, 100);</code>
19c23
< container.y = lEquation (x1, x2, y0, y1, y2);</code>
---
> container.y = lineEquation (x1, x2, y0, y1, y2);</code>

	
Ver Date Entry Lg User Action
#18057 2013-04-27 07:39:01 doc/start/objc en cristibaluta View | Diff
#18056 2013-04-27 07:39:01 doc/start/objc en cristibaluta Set title to Getting started with Haxe/ObjC
#15549 2012-10-08 10:02:09 download/make en cristibaluta View | Diff
#12654 2012-03-28 12:52:06 doc/snip/selective_trace en cristibaluta View | Diff
#10766 2011-07-21 17:03:35 com/showcase en cristibaluta View | Diff
#10765 2011-07-21 17:02:09 com/showcase en cristibaluta View | Diff
#10406 2011-04-06 16:32:31 download en cristibaluta View | Diff
#10405 2011-04-06 16:30:40 download en cristibaluta View | Diff
#9319 2010-10-18 12:07:40 doc/snip/stringwithformat en cristibaluta Set title to stringWithFormat
#9318 2010-10-18 12:06:04 doc/snip/stringwithformat en cristibaluta View | Diff
#8475 2010-05-28 10:23:24 doc/js/ajax en cristibaluta View | Diff
#6827 2009-08-20 06:23:26 doc/snip/lequation en cristibaluta View | Diff
#6820 2009-08-19 11:40:46 doc/snip/lequation en cristibaluta View | Diff
#6819 2009-08-19 11:16:35 doc/snip/lequation en cristibaluta View | Diff
#6818 2009-08-19 11:15:17 doc/snip/lequation en cristibaluta View | Diff
#6774 2009-08-18 23:11:59 doc/snip/lequation en cristibaluta View | Diff
#6773 2009-08-18 23:11:59 doc/snip/lequation en cristibaluta Set title to Equation of a straight line
#6772 2009-08-18 22:44:35 doc/snip/saferemove en cristibaluta View | Diff
#6771 2009-08-18 22:44:35 doc/snip/saferemove en cristibaluta Set title to Safe remove

Previous | Next