X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fcgmath%2Fcgmray.inl;fp=src%2Fcgmath%2Fcgmray.inl;h=0000000000000000000000000000000000000000;hp=063a7e0c82f7ae321345a4ebba55e9ec3aa06254;hb=3c8a42c780f4fb7817badbc136f7312aa20dd5ef;hpb=b6c89d9ffbb08c5286448de4773290f0924a420b diff --git a/src/cgmath/cgmray.inl b/src/cgmath/cgmray.inl deleted file mode 100644 index 063a7e0..0000000 --- a/src/cgmath/cgmray.inl +++ /dev/null @@ -1,39 +0,0 @@ -/* gph-cmath - C graphics math library - * Copyright (C) 2018 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. - * If you intend to redistribute parts of the code without the LICENSE file - * replace this paragraph with the full contents of the LICENSE file. - */ -static inline void cgm_rcons(cgm_ray *r, float x, float y, float z, float dx, float dy, float dz) -{ - r->origin.x = x; - r->origin.y = y; - r->origin.z = z; - r->dir.x = dx; - r->dir.y = dy; - r->dir.z = dz; -} - -static inline void cgm_rmul_mr(cgm_ray *ray, const float *m) -{ - cgm_vmul_m4v3(&ray->origin, m); - cgm_vmul_m3v3(&ray->dir, m); -} - -static inline void cgm_rmul_rm(cgm_ray *ray, const float *m) -{ - cgm_vmul_v3m4(&ray->origin, m); - cgm_vmul_v3m3(&ray->dir, m); -} - -static inline void cgm_rreflect(cgm_ray *ray, const cgm_vec3 *n) -{ - cgm_vreflect(&ray->dir, n); -} - -static inline void cgm_rrefract(cgm_ray *ray, const cgm_vec3 *n, float ior) -{ - cgm_vrefract(&ray->dir, n, ior); -}