I have 3 points, (x1, y1), (x2, y2), (x3, y3)
I should find the AH height. For this i must use:
How can i find each "a", "b" and "c" values?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI have 3 points, (x1, y1), (x2, y2), (x3, y3)
I should find the AH height. For this i must use:
How can i find each "a", "b" and "c" values?
a, b, c
describe the line passing through B-C
so a = y2-y3
, b = x2-x3
and c = x2*y3 - x3*y2
Here's a simple way to find point H (which makes finding AH trivial):
V1 = A - B
V2 = C - B
t = dot(V1,V2) / dot(V2,V2)
H = B + t*V2
Notes: