Lines Matching refs:ret

81         Vec2 ret;  variable
82 ret.x_ = x_ * rhs.x_;
83 ret.y_ = y_ * rhs.y_;
84 return ret;
89 Vec2 ret; variable
90 ret.x_ = x_ / rhs.x_;
91 ret.y_ = y_ / rhs.y_;
92 return ret;
97 Vec2 ret; variable
98 ret.x_ = x_ + rhs.x_;
99 ret.y_ = y_ + rhs.y_;
100 return ret;
105 Vec2 ret; variable
106 ret.x_ = x_ - rhs.x_;
107 ret.y_ = y_ - rhs.y_;
108 return ret;
147 Vec2 ret; variable
148 ret.x_ = lhs * rhs.x_;
149 ret.y_ = lhs * rhs.y_;
150 return ret;
155 Vec2 ret; variable
156 ret.x_ = lhs / rhs.x_;
157 ret.y_ = lhs / rhs.y_;
158 return ret;
164 Vec2 ret; variable
165 ret.x_ = x_ * rhs;
166 ret.y_ = y_ * rhs;
167 return ret;
179 Vec2 ret; variable
180 ret.x_ = x_ / rhs;
181 ret.y_ = y_ / rhs;
182 return ret;
297 Vec3 ret; variable
298 ret.x_ = x_ * rhs.x_;
299 ret.y_ = y_ * rhs.y_;
300 ret.z_ = z_ * rhs.z_;
301 return ret;
306 Vec3 ret; variable
307 ret.x_ = x_ / rhs.x_;
308 ret.y_ = y_ / rhs.y_;
309 ret.z_ = z_ / rhs.z_;
310 return ret;
315 Vec3 ret; variable
316 ret.x_ = x_ + rhs.x_;
317 ret.y_ = y_ + rhs.y_;
318 ret.z_ = z_ + rhs.z_;
319 return ret;
324 Vec3 ret; variable
325 ret.x_ = x_ - rhs.x_;
326 ret.y_ = y_ - rhs.y_;
327 ret.z_ = z_ - rhs.z_;
328 return ret;
371 Vec3 ret; variable
372 ret.x_ = lhs * rhs.x_;
373 ret.y_ = lhs * rhs.y_;
374 ret.z_ = lhs * rhs.z_;
375 return ret;
380 Vec3 ret; variable
381 ret.x_ = lhs / rhs.x_;
382 ret.y_ = lhs / rhs.y_;
383 ret.z_ = lhs / rhs.z_;
384 return ret;
390 Vec3 ret; variable
391 ret.x_ = x_ * rhs;
392 ret.y_ = y_ * rhs;
393 ret.z_ = z_ * rhs;
394 return ret;
407 Vec3 ret; variable
408 ret.x_ = x_ / rhs;
409 ret.y_ = y_ / rhs;
410 ret.z_ = z_ / rhs;
411 return ret;
459 Vec3 ret; in Cross() local
460 ret.x_ = y_ * rhs.z_ - z_ * rhs.y_; in Cross()
461 ret.y_ = z_ * rhs.x_ - x_ * rhs.z_; in Cross()
462 ret.z_ = x_ * rhs.y_ - y_ * rhs.x_; in Cross()
463 return ret; in Cross()
540 Vec4 ret; variable
541 ret.x_ = x_ * rhs.x_;
542 ret.y_ = y_ * rhs.y_;
543 ret.z_ = z_ * rhs.z_;
544 ret.w_ = z_ * rhs.w_;
545 return ret;
550 Vec4 ret; variable
551 ret.x_ = x_ / rhs.x_;
552 ret.y_ = y_ / rhs.y_;
553 ret.z_ = z_ / rhs.z_;
554 ret.w_ = z_ / rhs.w_;
555 return ret;
560 Vec4 ret; variable
561 ret.x_ = x_ + rhs.x_;
562 ret.y_ = y_ + rhs.y_;
563 ret.z_ = z_ + rhs.z_;
564 ret.w_ = z_ + rhs.w_;
565 return ret;
570 Vec4 ret; variable
571 ret.x_ = x_ - rhs.x_;
572 ret.y_ = y_ - rhs.y_;
573 ret.z_ = z_ - rhs.z_;
574 ret.w_ = z_ - rhs.w_;
575 return ret;
622 Vec4 ret; variable
623 ret.x_ = lhs * rhs.x_;
624 ret.y_ = lhs * rhs.y_;
625 ret.z_ = lhs * rhs.z_;
626 ret.w_ = lhs * rhs.w_;
627 return ret;
632 Vec4 ret; variable
633 ret.x_ = lhs / rhs.x_;
634 ret.y_ = lhs / rhs.y_;
635 ret.z_ = lhs / rhs.z_;
636 ret.w_ = lhs / rhs.w_;
637 return ret;
643 Vec4 ret; variable
644 ret.x_ = x_ * rhs;
645 ret.y_ = y_ * rhs;
646 ret.z_ = z_ * rhs;
647 ret.w_ = w_ * rhs;
648 return ret;
662 Vec4 ret; variable
663 ret.x_ = x_ / rhs;
664 ret.y_ = y_ / rhs;
665 ret.z_ = z_ / rhs;
666 ret.w_ = w_ / rhs;
667 return ret;
719 Vec3 ret; in Cross() local
720 ret.x_ = y_ * rhs.z_ - z_ * rhs.y_; in Cross()
721 ret.y_ = z_ * rhs.x_ - x_ * rhs.z_; in Cross()
722 ret.z_ = x_ * rhs.y_ - y_ * rhs.x_; in Cross()
723 return ret; in Cross()
764 Mat4 ret; variable
767 ret.f_[i] = f_[i] + rhs.f_[i];
769 return ret;
774 Mat4 ret; variable
777 ret.f_[i] = f_[i] - rhs.f_[i];
779 return ret;
802 Mat4 ret; variable
803 ret.f_[0] = f_[0] * rhs.f_[0] + f_[4] * rhs.f_[1] + f_[8] * rhs.f_[2]
805 ret.f_[1] = f_[1] * rhs.f_[0] + f_[5] * rhs.f_[1] + f_[9] * rhs.f_[2]
807 ret.f_[2] = f_[2] * rhs.f_[0] + f_[6] * rhs.f_[1] + f_[10] * rhs.f_[2]
809 ret.f_[3] = f_[3] * rhs.f_[0] + f_[7] * rhs.f_[1] + f_[11] * rhs.f_[2]
812 ret.f_[4] = f_[0] * rhs.f_[4] + f_[4] * rhs.f_[5] + f_[8] * rhs.f_[6]
814 ret.f_[5] = f_[1] * rhs.f_[4] + f_[5] * rhs.f_[5] + f_[9] * rhs.f_[6]
816 ret.f_[6] = f_[2] * rhs.f_[4] + f_[6] * rhs.f_[5] + f_[10] * rhs.f_[6]
818 ret.f_[7] = f_[3] * rhs.f_[4] + f_[7] * rhs.f_[5] + f_[11] * rhs.f_[6]
821 ret.f_[8] = f_[0] * rhs.f_[8] + f_[4] * rhs.f_[9] + f_[8] * rhs.f_[10]
823 ret.f_[9] = f_[1] * rhs.f_[8] + f_[5] * rhs.f_[9] + f_[9] * rhs.f_[10]
825 ret.f_[10] = f_[2] * rhs.f_[8] + f_[6] * rhs.f_[9] + f_[10] * rhs.f_[10]
827 ret.f_[11] = f_[3] * rhs.f_[8] + f_[7] * rhs.f_[9] + f_[11] * rhs.f_[10]
830 ret.f_[12] = f_[0] * rhs.f_[12] + f_[4] * rhs.f_[13] + f_[8] * rhs.f_[14]
832 ret.f_[13] = f_[1] * rhs.f_[12] + f_[5] * rhs.f_[13] + f_[9] * rhs.f_[14]
834 ret.f_[14] = f_[2] * rhs.f_[12] + f_[6] * rhs.f_[13] + f_[10] * rhs.f_[14]
836 ret.f_[15] = f_[3] * rhs.f_[12] + f_[7] * rhs.f_[13] + f_[11] * rhs.f_[14]
839 *this = ret;
845 Mat4 ret; variable
848 ret.f_[i] = f_[i] * rhs;
850 return ret;
875 Mat4 ret; in Transpose() local
876 ret.f_[0] = f_[0]; in Transpose()
877 ret.f_[1] = f_[4]; in Transpose()
878 ret.f_[2] = f_[8]; in Transpose()
879 ret.f_[3] = f_[12]; in Transpose()
880 ret.f_[4] = f_[1]; in Transpose()
881 ret.f_[5] = f_[5]; in Transpose()
882 ret.f_[6] = f_[9]; in Transpose()
883 ret.f_[7] = f_[13]; in Transpose()
884 ret.f_[8] = f_[2]; in Transpose()
885 ret.f_[9] = f_[6]; in Transpose()
886 ret.f_[10] = f_[10]; in Transpose()
887 ret.f_[11] = f_[14]; in Transpose()
888 ret.f_[12] = f_[3]; in Transpose()
889 ret.f_[13] = f_[7]; in Transpose()
890 ret.f_[14] = f_[11]; in Transpose()
891 ret.f_[15] = f_[15]; in Transpose()
892 *this = ret; in Transpose()
928 Mat4 ret; in Identity() local
929 ret.f_[0] = 1.f; in Identity()
930 ret.f_[1] = 0; in Identity()
931 ret.f_[2] = 0; in Identity()
932 ret.f_[3] = 0; in Identity()
933 ret.f_[4] = 0; in Identity()
934 ret.f_[5] = 1.f; in Identity()
935 ret.f_[6] = 0; in Identity()
936 ret.f_[7] = 0; in Identity()
937 ret.f_[8] = 0; in Identity()
938 ret.f_[9] = 0; in Identity()
939 ret.f_[10] = 1.f; in Identity()
940 ret.f_[11] = 0; in Identity()
941 ret.f_[12] = 0; in Identity()
942 ret.f_[13] = 0; in Identity()
943 ret.f_[14] = 0; in Identity()
944 ret.f_[15] = 1.f; in Identity()
945 return ret; in Identity()
1005 Quaternion ret; variable
1006 ret.x_ = x_ * rhs.w_ + y_ * rhs.z_ - z_ * rhs.y_ + w_ * rhs.x_;
1007 ret.y_ = -x_ * rhs.z_ + y_ * rhs.w_ + z_ * rhs.x_ + w_ * rhs.y_;
1008 ret.z_ = x_ * rhs.y_ - y_ * rhs.x_ + z_ * rhs.w_ + w_ * rhs.z_;
1009 ret.w_ = -x_ * rhs.x_ - y_ * rhs.y_ - z_ * rhs.z_ + w_ * rhs.w_;
1010 return ret;
1015 Quaternion ret; variable
1016 ret.x_ = x_ * rhs.w_ + y_ * rhs.z_ - z_ * rhs.y_ + w_ * rhs.x_;
1017 ret.y_ = -x_ * rhs.z_ + y_ * rhs.w_ + z_ * rhs.x_ + w_ * rhs.y_;
1018 ret.z_ = x_ * rhs.y_ - y_ * rhs.x_ + z_ * rhs.w_ + w_ * rhs.z_;
1019 ret.w_ = -x_ * rhs.x_ - y_ * rhs.y_ - z_ * rhs.z_ + w_ * rhs.w_;
1020 *this = ret;
1035 Quaternion ret; in Conjugated() local
1036 ret.x_ = -x_; in Conjugated()
1037 ret.y_ = -y_; in Conjugated()
1038 ret.z_ = -z_; in Conjugated()
1039 ret.w_ = w_; in Conjugated()
1040 return ret; in Conjugated()
1097 Quaternion ret; in RotationAxis() local
1099 ret.x_ = s * axis.x_; in RotationAxis()
1100 ret.y_ = s * axis.y_; in RotationAxis()
1101 ret.z_ = s * axis.z_; in RotationAxis()
1102 ret.w_ = cosf( angle / 2 ); in RotationAxis()
1103 return ret; in RotationAxis()