algebra_3D.Vector.hortogo

Vector.hortogo()

Test the hortogonal proprieties of self vector and given vec.

Parameters

Type

Description

vec

Vector

The vector to test with self

Returns
int
  • 0 : Vectors are not hortgonal

  • 1 : Vectors are hortogonal

See also

Vector.dot

Examples

>>> u=Vector(0,0,0,1,0,0)
>>> v=Vector(0,0,0,0,1,0)
>>> print(u.hortogo(v))
True