algebra_3D.Vector.cos¶
- Vector.cos()¶
Get a fast computed cos from self vector and vec vector. The operation is realized if and only if the two vectors have the same origin.
Parameters
Type
Description
vec
Vector
The vector angle-oriented with self vector
- Returns
- double
The computed cosine.
Examples
>>> v=Vector(0,0,0,1,0,0) >>> u=Vector(0,0,0,0,1,0) >>> v.cos(u) 0.0