Home | History | Annotate | Download | only in ScriptCRT

Lines Matching full:amount

680 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) {
681 return amount < low ? low : (amount > high ? high : amount);
683 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) {
685 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
686 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y);
689 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high) {
691 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
692 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y);
693 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z);
696 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high) {
698 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
699 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y);
700 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z);
701 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w);
704 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high) {
706 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
707 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
710 extern float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high) {
712 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
713 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
714 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
717 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high) {
719 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
720 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
721 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
722 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w);
731 extern float __attribute__((overloadable)) mix(float start, float stop, float amount) {
732 return start + (stop - start) * amount;
734 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount) {
735 return start + (stop - start) * amount;
737 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount) {
738 return start + (stop - start) * amount;
740 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount) {
741 return start + (stop - start) * amount;
743 extern float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount) {
744 return start + (stop - start) * amount;
746 extern float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float amount) {
747 return start + (stop - start) * amount;
749 extern float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float amount) {
750 return start + (stop - start) * amount;