Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Vector2d Class Reference

#include <vector2d.hxx>

List of all members.

Public Member Functions

 Vector2d ()
 Vector2d (float x_, float y_)
void operator+= (const Vector2d &vec)
void operator-= (const Vector2d &vec)
void operator *= (float f)
Vector2d operator+ (const Vector2d &vec) const
float dot (const Vector2d &vec) const
Vector2d operator- () const
Vector2d operator- (const Vector2d &vec) const
Vector2d operator * (float f) const
float norm () const
void normalize ()

Public Attributes

float x
float y


Constructor & Destructor Documentation

Vector2d::Vector2d   [inline]
 

Definition at line 33 of file vector2d.hxx.

Referenced by operator *(), operator+(), and operator-().

Vector2d::Vector2d float    x_,
float    y_
[inline]
 

Definition at line 37 of file vector2d.hxx.


Member Function Documentation

float Vector2d::dot const Vector2d &    vec const [inline]
 

Definition at line 65 of file vector2d.hxx.

References x, and y.

Referenced by Spring::update().

float Vector2d::norm   const [inline]
 

Definition at line 85 of file vector2d.hxx.

Referenced by Spring::draw(), World::draw_springs(), World::get_particle(), normalize(), Selection::rotate(), Spring::update(), and Particle::update().

void Vector2d::normalize   [inline]
 

Definition at line 91 of file vector2d.hxx.

References norm().

Referenced by Spring::update(), and Particle::update().

Vector2d Vector2d::operator * float    f const [inline]
 

Definition at line 80 of file vector2d.hxx.

References Vector2d().

void Vector2d::operator *= float    f [inline]
 

Definition at line 54 of file vector2d.hxx.

Vector2d Vector2d::operator+ const Vector2d &    vec const [inline]
 

Definition at line 60 of file vector2d.hxx.

References Vector2d(), x, and y.

void Vector2d::operator+= const Vector2d &    vec [inline]
 

Definition at line 42 of file vector2d.hxx.

References x, and y.

Vector2d Vector2d::operator- const Vector2d &    vec const [inline]
 

Definition at line 75 of file vector2d.hxx.

References Vector2d(), x, and y.

Vector2d Vector2d::operator-   const [inline]
 

Definition at line 70 of file vector2d.hxx.

References Vector2d().

void Vector2d::operator-= const Vector2d &    vec [inline]
 

Definition at line 48 of file vector2d.hxx.

References x, and y.


Member Data Documentation

float Vector2d::x
 

Definition at line 30 of file vector2d.hxx.

Referenced by World::add_rect_collider(), RectCollider::bounce(), dot(), GraphicContext::draw_circle(), GraphicContext::draw_fill_circle(), GraphicContext::draw_fill_rect(), WorldViewZoomTool::draw_foreground(), WorldViewSelectTool::draw_foreground(), WorldViewInsertTool::draw_foreground(), GraphicContext::draw_line(), GraphicContext::draw_rect(), World::draw_springs(), GraphicContext::draw_string(), Particle::draw_velocity_vector(), RectCollider::is_at(), WorldViewSelectTool::on_mouse_move(), WorldViewZoomTool::on_primary_button_press(), WorldViewSelectTool::on_primary_button_press(), WorldViewZoomTool::on_primary_button_release(), WorldViewColliderTool::on_primary_button_release(), particle_obsolete::operator()(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), LispReader::read_vector(), RectCollider::RectCollider(), Selection::rotate(), Selection::scale(), ZoomGraphicContext::screen_to_world(), Selection::select_particles(), RectCollider::set_pos(), Particle::update(), ZoomGraphicContext::world_to_screen(), and LispWriter::write_vector().

float Vector2d::y
 

Definition at line 31 of file vector2d.hxx.

Referenced by World::add_rect_collider(), RectCollider::bounce(), dot(), Particle::draw(), GraphicContext::draw_circle(), GraphicContext::draw_fill_circle(), GraphicContext::draw_fill_rect(), WorldViewZoomTool::draw_foreground(), WorldViewSelectTool::draw_foreground(), WorldViewInsertTool::draw_foreground(), GraphicContext::draw_line(), GraphicContext::draw_rect(), World::draw_springs(), GraphicContext::draw_string(), Particle::draw_velocity_vector(), RectCollider::is_at(), WorldViewSelectTool::on_mouse_move(), WorldViewZoomTool::on_primary_button_press(), WorldViewSelectTool::on_primary_button_press(), WorldViewZoomTool::on_primary_button_release(), WorldViewColliderTool::on_primary_button_release(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), LispReader::read_vector(), RectCollider::RectCollider(), Selection::rotate(), Selection::scale(), ZoomGraphicContext::screen_to_world(), Selection::select_particles(), RectCollider::set_pos(), Particle::update(), ZoomGraphicContext::world_to_screen(), and LispWriter::write_vector().


The documentation for this class was generated from the following file:
Generated on Thu Jul 24 10:25:26 2003 for Construo by doxygen1.3-rc3