void RotateTriangles(float roll, float pitch, float yaw) { Matrix4x4 h = Transformations.CreateTransformationMatrix(roll, pitch, yaw, 0, 0, 0); redTriangle = Triangle.MultiplyTriangleByMatrix(redTriangle, h); greenTriangle = Triangle.MultiplyTriangleByMatrix(greenTriangle, h); }