TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Vector2.h File Reference
#include <string>
#include "G3D/platform.h"
#include "G3D/g3dmath.h"
#include "G3D/Table.h"
#include "G3D/HashTrait.h"
#include "G3D/Vector2int16.h"
#include "G3D/Vector2unorm16.h"
#include "G3D/Random.h"
+ Include dependency graph for Vector2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  G3D::Vector2
 
struct  HashTrait< G3D::Vector2 >
 

Namespaces

 G3D
 

Typedefs

typedef Vector2 G3D::Point2
 

Functions

Vector2 G3D::operator* (double s, const Vector2 &v)
 
Vector2 G3D::operator* (float s, const Vector2 &v)
 
Vector2 G3D::operator* (int s, const Vector2 &v)
 
void G3D::serialize (const Vector2 &v, class BinaryOutput &b)
 
void G3D::deserialize (Vector2 &v, class BinaryInput &b)
 
G3D::Vector2 operator* (double s, const G3D::Vector2 &v)
 
G3D::Vector2 operator* (int s, const G3D::Vector2 &v)
 

Detailed Description

2D vector class

Morgan McGuire, http://graphics.cs.williams.edu

2001-06-02 2011-11-30

Copyright 2000-2012, Morgan McGuire. All rights reserved.

Function Documentation

G3D::Vector2 operator* ( double  s,
const G3D::Vector2 v 
)
inline
507  {
508  return v * (float)s;
509 }
G3D::Vector2 operator* ( int  s,
const G3D::Vector2 v 
)
inline
510  {
511  return v * (float)s;
512 }