math - Normalize a vector differently than normal -
i have vector represents alter between 1 vector , another. vectors diagonal each other. example, if first vector (1, 0)
, sec was(3, 2)
, alter (2, 2)
, should normalized (1, 1)
. "normal" normalizing dividing both x , y vector's length results in 2.83 illustration vector not need. how can accomplish "normalization"?
divide both components of vector greatest mutual divisor.
math greatest-common-divisor
No comments:
Post a Comment