|
def | __init__ (self, coords) |
|
def | __str__ (self) |
|
def | __repr__ (self) |
|
def | x (self) |
|
def | x (self, val) |
|
def | y (self) |
|
def | y (self, val) |
|
def | __len__ (self) |
|
def | __getitem__ (self, key) |
|
def | __setitem__ (self, key, val) |
|
def | __iter__ (self) |
|
def | __abs__ (self) |
|
def | __sub__ (self, other) |
|
def | __add__ (self, other) |
|
def | __mul__ (self, other) |
|
def | __div__ (self, other) |
|
def | dot (self, other) |
|
def | magnitude (self) |
|
def | unit (self) |
|
Definition at line 15 of file generator.py.
def wirecell.util.wires.generator.Point.__init__ |
( |
|
self, |
|
|
|
coords |
|
) |
| |
Definition at line 16 of file generator.py.
def __init__(self, coords)
def wirecell.util.wires.generator.Point.__abs__ |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.__add__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 58 of file generator.py.
60 return Point(*[(a+b)
for a,b
in zip(self, other)])
62 return Point(*[(a+other)
for a
in self])
auto zip(Iterables &&...iterables)
Range-for loop helper iterating across many collections at the same time.
def wirecell.util.wires.generator.Point.__div__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 70 of file generator.py.
72 return Point(*[(a/b)
for a,b
in zip(self, other)])
74 return Point(*[(a/other)
for a
in self])
auto zip(Iterables &&...iterables)
Range-for loop helper iterating across many collections at the same time.
def wirecell.util.wires.generator.Point.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Definition at line 42 of file generator.py.
def __getitem__(self, key)
def wirecell.util.wires.generator.Point.__iter__ |
( |
|
self | ) |
|
Definition at line 46 of file generator.py.
47 return self._coords.__iter__()
def wirecell.util.wires.generator.Point.__len__ |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.__mul__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 64 of file generator.py.
66 return Point(*[(a*b)
for a,b
in zip(self, other)])
68 return Point(*[(a*other)
for a
in self])
auto zip(Iterables &&...iterables)
Range-for loop helper iterating across many collections at the same time.
def wirecell.util.wires.generator.Point.__repr__ |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.__setitem__ |
( |
|
self, |
|
|
|
key, |
|
|
|
val |
|
) |
| |
Definition at line 44 of file generator.py.
def __setitem__(self, key, val)
def wirecell.util.wires.generator.Point.__str__ |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.__sub__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 52 of file generator.py.
54 return Point(*[(a-b)
for a,b
in zip(self, other)])
56 return Point(*[(a-other)
for a
in self])
auto zip(Iterables &&...iterables)
Range-for loop helper iterating across many collections at the same time.
def wirecell.util.wires.generator.Point.dot |
( |
|
self, |
|
|
|
other |
|
) |
| |
Definition at line 77 of file generator.py.
78 return sum([a*b
for a,b
in zip(self, other)])
auto zip(Iterables &&...iterables)
Range-for loop helper iterating across many collections at the same time.
def wirecell.util.wires.generator.Point.magnitude |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.unit |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.x |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.x |
( |
|
self, |
|
|
|
val |
|
) |
| |
def wirecell.util.wires.generator.Point.y |
( |
|
self | ) |
|
def wirecell.util.wires.generator.Point.y |
( |
|
self, |
|
|
|
val |
|
) |
| |
wirecell.util.wires.generator.Point.__truediv__ = __div__ |
|
staticprivate |
wirecell.util.wires.generator.Point._coords |
|
private |
The documentation for this class was generated from the following file: