tile_renderer.coord.Vector

class tile_renderer.coord.Vector(x: 'T', y: 'T')

Bases: Generic

__init__(x: T, y: T) None

Methods

__init__(x, y)

as_tuple()

decode(obj)

dot()

encode()

perp()

to_float()

to_int()

unit()

Attributes

x

y

as_tuple() tuple[T, T]
classmethod decode(obj: tuple[T, T]) Self
dot(other: Vector[int]) int
dot(other: Vector[int] | Vector[float]) float
dot(other: Vector[float]) float
encode() tuple[T, T]
perp() Self
to_float() Vector[float]
to_int() Vector[int]
unit() Vector[float]
x: T
y: T