| 148 | } |
| 149 | |
| 150 | short GetSurfaceAspectAngle(const Vector3& normal, const Vector3& axis) |
| 151 | { |
| 152 | if (normal == -axis) |
| 153 | return 0; |
| 154 | |
| 155 | // TODO: Consider axis. |
| 156 | return FROM_RAD(atan2(normal.x, normal.z)); |
| 157 | } |
| 158 | |
| 159 | BoundingBox GetAabb(const BoundingOrientedBox& box) |
| 160 | { |