Module TkZero.Vector
Represents a simple 2D vector.
Expand source code
"""
Represents a simple 2D vector.
"""
from collections import namedtuple
Position = namedtuple("Position", ["x", "y"])
Size = namedtuple("Size", ["width", "height"])
Classes
class Position (x, y)
-
Position(x, y)
Ancestors
- builtins.tuple
Instance variables
var x
-
Alias for field number 0
var y
-
Alias for field number 1
class Size (width, height)
-
Size(width, height)
Ancestors
- builtins.tuple
Instance variables
var height
-
Alias for field number 1
var width
-
Alias for field number 0