10.1.4.6. Vector¶
-
class
Musica.Geometry.Vector.
HomogeneousVector2D
(*args)[source]¶ Bases:
Musica.Geometry.Vector.VectorAbc
2D Homogeneous Coordinate Vector
-
w
¶
-
-
class
Musica.Geometry.Vector.
NormalisedVector2D
(array)[source]¶ Bases:
Musica.Geometry.Vector.VectorAbc
2D Normalised Vector
-
class
Musica.Geometry.Vector.
Vector2D
(*args)[source]¶ Bases:
Musica.Geometry.Vector.VectorFloatMixin
,Musica.Geometry.Vector.VectorArithmeticMixin
,Musica.Geometry.Vector.Vector2DBase
2D Vector
Example of usage:
Vector(1, 3) Vector((1, 3)) Vector([1, 3]) Vector(iterable) Vector(vector)
-
class
Musica.Geometry.Vector.
Vector2DBase
(*args)[source]¶ Bases:
Musica.Geometry.Vector.VectorAbc
Example of usage:
Vector(1, 3) Vector((1, 3)) Vector([1, 3]) Vector(iterable) Vector(vector)
-
class
Musica.Geometry.Vector.
Vector2DInt
(*args)[source]¶ Bases:
Musica.Geometry.Vector.VectorIntMixin
,Musica.Geometry.Vector.VectorArithmeticMixin
,Musica.Geometry.Vector.Vector2DBase
Example of usage:
Vector(1, 3) Vector((1, 3)) Vector([1, 3]) Vector(iterable) Vector(vector)
-
class
Musica.Geometry.Vector.
VectorAbc
(array_size, v_size)[source]¶ Bases:
Musica.Geometry.Primitive.Primitive2D
-
__data_type__
= None¶
-
__hash__
= None¶
-
array
¶
-
v
¶
-
x
¶
-
y
¶
-
-
class
Musica.Geometry.Vector.
VectorArithmeticMixin
[source]¶ Bases:
object
-
anti_normal
()[source]¶ Return a new vector equal to self rotated of 90 degree in the clockwise direction
-