mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
dont use I macro defined in standard
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
CGLM_INLINE vec2s glms_vec2_clamp(vec2s v, float minVal, float maxVal)
|
||||
CGLM_INLINE vec2s glms_vec2_lerp(vec2s from, vec2s to, float t)
|
||||
CGLM_INLINE vec2s glms_vec2_make(float * restrict src)
|
||||
CGLM_INLINE vec2s glms_vec2_reflect(vec2s I, vec2s N)
|
||||
CGLM_INLINE bool glms_vec2_refract(vec2s I, vec2s N, float eta, vec2s *dest)
|
||||
CGLM_INLINE vec2s glms_vec2_reflect(vec2s v, vec2s n)
|
||||
CGLM_INLINE bool glms_vec2_refract(vec2s v, vec2s n, float eta, vec2s *dest)
|
||||
*/
|
||||
|
||||
#ifndef cglms_vec2s_h
|
||||
@@ -702,9 +702,9 @@ glms_vec2_(make)(const float * __restrict src) {
|
||||
*/
|
||||
CGLM_INLINE
|
||||
vec2s
|
||||
glms_vec2_(reflect)(vec2s I, vec2s N) {
|
||||
glms_vec2_(reflect)(vec2s v, vec2s n) {
|
||||
vec2s dest;
|
||||
glm_vec2_reflect(I.raw, N.raw, dest.raw);
|
||||
glm_vec2_reflect(v.raw, n.raw, dest.raw);
|
||||
return dest;
|
||||
}
|
||||
|
||||
@@ -715,8 +715,8 @@ glms_vec2_(reflect)(vec2s I, vec2s N) {
|
||||
* occurs (angle too great given eta), dest is set to zero and returns false.
|
||||
* Otherwise, computes refraction vector, stores it in dest, and returns true.
|
||||
*
|
||||
* @param[in] I normalized incident vector
|
||||
* @param[in] N normalized normal vector
|
||||
* @param[in] v normalized incident vector
|
||||
* @param[in] n normalized normal vector
|
||||
* @param[in] eta ratio of indices of refraction (incident/transmitted)
|
||||
* @param[out] dest refraction vector if refraction occurs; zero vector otherwise
|
||||
*
|
||||
@@ -724,8 +724,8 @@ glms_vec2_(reflect)(vec2s I, vec2s N) {
|
||||
*/
|
||||
CGLM_INLINE
|
||||
bool
|
||||
glms_vec2_(refract)(vec2s I, vec2s N, float eta, vec2s * __restrict dest) {
|
||||
return glm_vec2_refract(I.raw, N.raw, eta, dest->raw);
|
||||
glms_vec2_(refract)(vec2s v, vec2s n, float eta, vec2s * __restrict dest) {
|
||||
return glm_vec2_refract(v.raw, n.raw, eta, dest->raw);
|
||||
}
|
||||
|
||||
#endif /* cglms_vec2s_h */
|
||||
|
||||
Reference in New Issue
Block a user