#include <iostream>Include dependency graph for Vector2D.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| class | Vector2D |
Functions | |
| Vector2D | operator- (const Vector2D &vec1, const Vector2D &vec2) |
| double | dot (const Vector2D &vec1, const Vector2D &vec2) |
| double | vedge (const Vector2D &vec1, const Vector2D &vec2) |
| double | lengthsqr (const Vector2D &vec) |
|
||||||||||||
|
Definition at line 85 of file Vector2D.h. References Vector2D::vector. Referenced by bounce_on_robot(), Robot::bounce_on_wall(), Robot::change_velocity(), Arc::get_distance(), InnerCircle::get_distance(), Circle::get_distance(), Line::get_distance(), shot_collision(), and Line::within_distance(). 00086 {
00087 return( vec1.vector[0] * vec2.vector[0] +
00088 vec1.vector[1] * vec2.vector[1] );
00089 }
|
|
|
Definition at line 100 of file Vector2D.h. References Vector2D::vector. Referenced by bounce_on_robot(), Robot::bounce_on_wall(), Arc::get_distance(), InnerCircle::get_distance(), Circle::get_distance(), Arc::get_normal(), ArenaBase::parse_arena_line(), Arc::within_distance(), InnerCircle::within_distance(), and Circle::within_distance().
|
|
||||||||||||
|
Definition at line 77 of file Vector2D.h. References Vector2D::vector. 00078 {
00079 return( Vector2D( vec1.vector[0] - vec2.vector[0],
00080 vec1.vector[1] - vec2.vector[1] ) );
00081 }
|
|
||||||||||||
|
Definition at line 92 of file Vector2D.h. References Vector2D::vector. Referenced by Robot::change_velocity(), Line::get_distance(), Line::get_normal(), and Line::within_distance(). 00093 {
00094 return( vec1.vector[0]*vec2.vector[1] -
00095 vec1.vector[1]*vec2.vector[0] );
00096 }
|
1.3.9.1