Method
__init__
(
self,
vector: Vector,
n: int,
directionMax: bool = True,
tolerance: float = 0.0001,
)
Source from the content-addressed store, hash-verified
| 383 | """ |
| 384 | |
| 385 | def __init__( |
| 386 | self, |
| 387 | vector: Vector, |
| 388 | n: int, |
| 389 | directionMax: bool = True, |
| 390 | tolerance: float = 0.0001, |
| 391 | ): |
| 392 | super().__init__(n, directionMax, tolerance) |
| 393 | self.direction = vector |
| 394 | |
| 395 | def key(self, obj: Shape) -> float: |
| 396 | return obj.Center().dot(self.direction) |
Callers
nothing calls this directly
Tested by
no test coverage detected