(self, center: list[float], length: float, width: float,
yaw: float)
| 24 | class Rectangle: |
| 25 | |
| 26 | def __init__(self, center: list[float], length: float, width: float, |
| 27 | yaw: float) -> None: |
| 28 | self.center = np.array(center) |
| 29 | self.length = length |
| 30 | self.width = width |
| 31 | self.yaw = yaw |
| 32 | self.rotateMat = self.getRotateMat() |
| 33 | self.iRotate = np.linalg.inv(self.rotateMat) |
| 34 | self.sCorners = self.getSCorners() |
| 35 | self.corners = self.getCorners() |
| 36 | |
| 37 | def getRotateMat(self) -> np.ndarray: |
| 38 | return np.array([[np.cos(self.yaw), -np.sin(self.yaw)], |
nothing calls this directly
no test coverage detected