Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3818 in orxonox.OLD for orxonox/trunk/src/lib/math


Ignore:
Timestamp:
Apr 14, 2005, 12:12:01 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: vector inline function definitions

Location:
orxonox/trunk/src/lib/math
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/math/vector.cc

    r3817 r3818  
    3232   \return the sum of both vectors
    3333*/
    34 /*
    35 Vector Vector::operator+ (const Vector& v) const
    36 {
    37   return Vector(x + v.x, y + v.y, z + v.z);
    38 }
    39 */
     34
     35//Vector Vector::operator+ (const Vector& v) const
     36
    4037
    4138/**
     
    4441   \return the difference between the vectors
    4542*/
    46 /*
    47 Vector Vector::operator- (const Vector& v) const
    48 {
    49   return Vector(x - v.x, y - v.y, z - v.z);
    50 }
    51 */
     43//Vector Vector::operator- (const Vector& v) const
     44
    5245
    5346/**
     
    5649   \return the dot product of the vectors
    5750*/
    58 /*
    59 float Vector::operator* (const Vector& v) const
    60 {
    61   return x * v.x + y * v.y+ z * v.z;
    62 }
    63 */
     51//float Vector::operator* (const Vector& v) const
     52
    6453
    6554/**
     
    6857   \return the vector multipied by f
    6958*/
    70 Vector Vector::operator* (float f) const
    71 
    72   return Vector(x * f, y * f, z * f);
    73 }
     59//Vector Vector::operator* (float f) const
     60
    7461
    7562/**
  • orxonox/trunk/src/lib/math/vector.h

    r3817 r3818  
    3232  Vector operator- (const Vector& v) const { return Vector(x - v.x, y - v.y, z - v.z); }
    3333  float operator* (const Vector& v) const { return x * v.x + y * v.y + z * v.z; }
    34   Vector operator* (float f) const;
     34  Vector operator* (float f) const { return Vector(x * f, y * f, z * f); }
    3535  Vector operator/ (float f) const;
    3636  float dot (const Vector& v) const;
Note: See TracChangeset for help on using the changeset viewer.