X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fcgmath%2Fcgmmat.inl;h=f8168b44599511a65c1c8d6e11c55332c97f1d3f;hb=81dffafe4b045c854d8a97f9c6c41877ee7669ca;hp=b1a19f094663971b3242d3c56b27e3d44cc89b76;hpb=7fccf8b3543c8cdb993252f0cf9a6b9ed826408e;p=retroray diff --git a/libs/cgmath/cgmmat.inl b/libs/cgmath/cgmmat.inl index b1a19f0..f8168b4 100644 --- a/libs/cgmath/cgmmat.inl +++ b/libs/cgmath/cgmmat.inl @@ -1,5 +1,5 @@ /* gph-cmath - C graphics math library - * Copyright (C) 2018 John Tsiombikas + * Copyright (C) 2018-2023 John Tsiombikas * * This program is free software. Feel free to use, modify, and/or redistribute * it under the terms of the MIT/X11 license. See LICENSE for details. @@ -486,22 +486,6 @@ static CGM_INLINE void cgm_mget_scaling(const float *m, cgm_vec3 *res) static CGM_INLINE void cgm_mget_frustum_plane(const float *m, int p, cgm_vec4 *res) { - /* - int row = p >> 1; - const float *rowptr = m + row * 4; - - if((p & 1) == 0) { - res->x = m[12] + rowptr[0]; - res->y = m[13] + rowptr[1]; - res->z = m[14] + rowptr[2]; - res->w = m[15] + rowptr[3]; - } else { - res->x = m[12] - rowptr[0]; - res->y = m[13] - rowptr[1]; - res->z = m[14] - rowptr[2]; - res->w = m[15] - rowptr[3]; - } - */ switch(p) { case 0: res->x = m[3] + m[0];