Lines Matching refs:vec
129 Vec3 vec = vec_offset_ + vec_offset_now_; in Update() local
132 vec *= vec_tmp * vec_pinch_transform_factor_; in Update()
134 mat_transform_ = Mat4::Translation( vec ); in Update()
165 Vec2 vec = v * vec_flip_; in BeginDrag() local
166 vec_ball_now_ = vec; in BeginDrag()
171 vec_last_input_ = vec; in BeginDrag()
190 Vec2 vec = v * vec_flip_; in Drag() local
191 vec_ball_now_ = vec; in Drag()
193 vec_drag_delta_ = vec_drag_delta_ * MOMENTUM_FACTOR + (vec - vec_last_input_); in Drag()
194 vec_last_input_ = vec; in Drag()
212 Vec2 vec = v1 - v2; in BeginPinch() local
215 vec.Value( x_diff, y_diff ); in BeginPinch()
251 Vec2 vec = v1 - v2; in Pinch() local
252 vec.Value( x_diff, y_diff ); in Pinch()
264 vec = (v1 + v2) / 2.f - vec_pinch_start_center_; in Pinch()
265 vec_offset_now_ = Vec3( vec, flip_z_ * f ); in Pinch()
291 Vec3 vec = vec_from.Cross( vec_to ); in BallUpdate() local
294 Quaternion qDrag = Quaternion( vec, w ); in BallUpdate()
305 Vec2 vec = (point - vec_ball_center_) / ball_radius_; in PointOnSphere() local
306 mag = vec.Dot( vec ); in PointOnSphere()
310 vec *= scale; in PointOnSphere()
311 ball_mouse = Vec3( vec, 0.f ); in PointOnSphere()
315 ball_mouse = Vec3( vec, sqrtf( 1.f - mag ) ); in PointOnSphere()