O'Reilly logo

Behavioral Mathematics for Game AI by Dave Mark

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simple Linear Functions

The most basic function we will use is the linear function—named as such due to the result forming a straight line. We usually see this early algebraic staple defined in the slope-intercept form,

y= mx +b

where m is the slope of the line and b is the y-intercept (the point where the line crosses the y-axis).

We can also use a version that is solved in terms of x instead:

In this case, c is the x-intercept rather than the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required