Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Calculating Gradients with lines offset from the origin

Author
Message
vitp4145
3
Years of Service
User Offline
Joined: 22nd Aug 2016
Location:
Posted: 9th Oct 2019 11:40
Hi everybody

A basic source of confusion here. Can anybody explain to me why the gradient in quadrant 4 is positive?

Attachments

Login to view attachments
DannyD
2
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 9th Oct 2019 12:31
I think your Y axis is reversed? Up Y+, Down -Y
Just a wild guess...
Bengismo
1
Years of Service
Recently Online
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 9th Oct 2019 17:07
Gradient is typically defined as dY / dX

Quadrant 1: -7 / 5 = -1.4 (Y decreases as X increases) Negative gradient

Quadrant 4: 9 / 4 = 2.25 (Y value increases from -11 to -2 as x changes from 14 to 18) Positive gradient

It is misleading as the Y axis is inverted.


Login to post a reply

Server time is: 2019-11-17 14:58:02
Your offset time is: 2019-11-17 14:58:02