-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
pooltool/physics/resolve/ball_cushion/unrealistic/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
"""An unrealistic ball-cushion model""" | ||
|
||
from typing import Tuple | ||
|
||
from pooltool.objects.ball.datatypes import Ball | ||
from pooltool.objects.table.components import LinearCushionSegment | ||
from pooltool.physics.resolve.ball_cushion.core import CoreBallLCushionCollision | ||
|
||
|
||
class UnrealisticLinear(CoreBallLCushionCollision): | ||
def solve( | ||
self, ball: Ball, cushion: LinearCushionSegment | ||
) -> Tuple[Ball, LinearCushionSegment]: | ||
return ball, cushion |