Photon Server API
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Photon.MmoDemo.Common.Vector Struct Reference

The 3D floating point vector. More...

Public Member Functions

 Vector (float x, float y, float z)
 
 Vector (float x, float y)
 
 Vector (Vector v)
 
override string ToString ()
 

Static Public Member Functions

static Vector operator+ (Vector a, Vector b)
 
static Vector operator/ (Vector a, int b)
 
static Vector operator* (Vector a, float b)
 
static Vector operator* (Vector a, int b)
 
static Vector operator- (Vector a, Vector b)
 
static Vector operator- (Vector a)
 
static Vector Max (Vector value1, Vector value2)
 
static Vector Min (Vector value1, Vector value2)
 

Public Attributes

const float TOLERANCE = 0.000001f
 

Static Public Attributes

static Vector Zero
 

Properties

float X [get, set]
 
float Y [get, set]
 
float Z [get, set]
 
bool IsZero [get]
 
float Len2 [get]
 

Detailed Description

The 3D floating point vector.

Constructor & Destructor Documentation

Photon.MmoDemo.Common.Vector.Vector ( float  x,
float  y,
float  z 
)
inline
Photon.MmoDemo.Common.Vector.Vector ( float  x,
float  y 
)
inline
Photon.MmoDemo.Common.Vector.Vector ( Vector  v)
inline

Member Function Documentation

static Vector Photon.MmoDemo.Common.Vector.Max ( Vector  value1,
Vector  value2 
)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.Min ( Vector  value1,
Vector  value2 
)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.operator* ( Vector  a,
float  b 
)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.operator* ( Vector  a,
int  b 
)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.operator+ ( Vector  a,
Vector  b 
)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.operator- ( Vector  a,
Vector  b 
)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.operator- ( Vector  a)
inlinestatic
static Vector Photon.MmoDemo.Common.Vector.operator/ ( Vector  a,
int  b 
)
inlinestatic
override string Photon.MmoDemo.Common.Vector.ToString ( )
inline

Member Data Documentation

const float Photon.MmoDemo.Common.Vector.TOLERANCE = 0.000001f
Vector Photon.MmoDemo.Common.Vector.Zero
static

Property Documentation

bool Photon.MmoDemo.Common.Vector.IsZero
get
float Photon.MmoDemo.Common.Vector.Len2
get
float Photon.MmoDemo.Common.Vector.X
getset
float Photon.MmoDemo.Common.Vector.Y
getset
float Photon.MmoDemo.Common.Vector.Z
getset