csg.geom.Vector
-
class csg.geom.Vector(*args)
Bases: object
class Vector
Represents a 3D vector.
- Example usage:
- Vector(1, 2, 3);
Vector([1, 2, 3]);
Vector({ ‘x’: 1, ‘y’: 2, ‘z’: 3 });
-
clone()
Clone.
-
cross(a)
Cross.
-
dividedBy(a)
Divide.
-
dot(a)
Dot.
-
length()
Length.
-
lerp(a, t)
Lerp.
-
minus(a)
Subtract.
-
negated()
Negated.
-
plus(a)
Add.
-
times(a)
Multiply.
-
unit()
Normalize.