mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 17:23:12 +02:00
git-subtree-dir: Programming/TRAK git-subtree-mainline:e11d703c3egit-subtree-split:777937fb9e
17 lines
410 B
Python
17 lines
410 B
Python
import numpy as np
|
|
from ..utils.constants import *
|
|
from ..utils.vector3 import vec3
|
|
from abc import abstractmethod
|
|
|
|
class Collider:
|
|
def __init__(self,assigned_primitive, center):
|
|
self.assigned_primitive = assigned_primitive
|
|
self.center = center
|
|
|
|
@abstractmethod
|
|
def intersect(self, O, D):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_Normal(self, hit):
|
|
pass |