| 739 | } |
| 740 | |
| 741 | Transform3D Transform3D::MakeSkew(float angle, const Vector3D& a, const Vector3D& b) |
| 742 | { |
| 743 | float t = Tan(angle); |
| 744 | float x = a.x * t; |
| 745 | float y = a.y * t; |
| 746 | float z = a.z * t; |
| 747 | |
| 748 | return (Transform3D(x * b.x + 1.0F, x * b.y, x * b.z, 0.0F, |
| 749 | y * b.x, y * b.y + 1.0F, y * b.z, 0.0F, |
| 750 | z * b.x, z * b.y, z * b.z + 1.0F, 0.0F)); |
| 751 | } |
| 752 | |
| 753 | Transform3D Transform3D::MakeTranslation(const Vector3D& dv) |
| 754 | { |
nothing calls this directly
no test coverage detected