From dd67c91abd2e5f549fe35f590f37c5d6c732a100 Mon Sep 17 00:00:00 2001
From: Sven Göthel
@@ -357,26 +357,26 @@ public class Frustum { * @param fovDesc {@link Frustum} {@link FovDesc} * @return given matrix for chaining * @see Matrix4f#setToPerspective(FovHVHalves, float, float) - * @see Matrix4f#updateFrustumPlanes(Frustum) + * @see Matrix4f#getFrustum(Frustum) * @see Matrix4f#getFrustum(Frustum, FovDesc) */ public Matrix4f updateByFovDesc(final Matrix4f m, final FovDesc fovDesc) { m.setToPerspective(fovDesc.fovhv, fovDesc.zNear, fovDesc.zFar); - m.updateFrustumPlanes(this); + setFromMat(m); return m; } /** * Calculate the frustum planes in world coordinates - * using the passed premultiplied P*MV (column major order) matrix. + * using the passed column major order matrix, usually a projection (P) or premultiplied P*MV matrix. *
* Frustum plane's normals will point to the inside of the viewing frustum, * as required by this class. *
- * @see Matrix4f#updateFrustumPlanes(Frustum) + * @see Matrix4f#getFrustum(Frustum) */ - public Frustum updateFrustumPlanes(final Matrix4f pmv) { - return pmv.updateFrustumPlanes(this); + public Frustum setFromMat(final Matrix4f pmv) { + return pmv.getFrustum(this); } /** -- cgit v1.2.3