Class VectorΒΆ

Here the main Vector class engine definition.

algebra_3D.Vector.angle

Getters : Get the alpha angle between vector and norm.

algebra_3D.Vector.angle_vec

Get the angle between two vectors.

algebra_3D.Vector.copy

Copy an instance of the current Vector object

algebra_3D.Vector.cos

Get a fast computed cos from self vector and vec vector.

algebra_3D.Vector.dot

Dot product self and vec.

algebra_3D.Vector.hortogo

Test the hortogonal proprieties of self vector and given vec.

algebra_3D.Vector.length

Get the norm of self vector.

algebra_3D.Vector.op

Operator redefinition for the class Point.

algebra_3D.Vector.p1

Getters : Get the origin of vector as Point.

algebra_3D.Vector.p2

Getters : Get the destination of vector as Point.

algebra_3D.Vector.pointAt

Get the point result after a translation by self vector, scaling by t.

algebra_3D.Vector.print_screen

Utilitary screen printer.

algebra_3D.Vector.prod

Cross product self and vec.

algebra_3D.Vector.setLength

Change the length of the vector without lambda-multiplication (you can define a precise length).

algebra_3D.Vector.setP1

Setters : Set the origin of vector as Point

algebra_3D.Vector.setP2

Setters : Set the destination of vector as Point

algebra_3D.Vector.setPoints

Setters : Set the vector from Points arguments

algebra_3D.Vector.translate

Translate self vector to the given Point.

algebra_3D.Vector.unitVector

Get unit vector from self.

algebra_3D.Vector.vect

Get the absolute vector (from (0,0,0)).

algebra_3D.Vector.x1

Getters : Get the x coordonate of the origin vector.

algebra_3D.Vector.x2

Getters : Get the x coordonate of the destination vector.

algebra_3D.Vector.y1

Getters : Get the y coordonate of the origin vector.

algebra_3D.Vector.y2

Getters : Get the y coordonate of the destination vector.

algebra_3D.Vector.z1

Getters : Get the z coordonate of the origin vector.

algebra_3D.Vector.z2

Getters : Get the z coordonate of the destination vector.