UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::math Namespace Reference

Classes

class  Frame
 Represents a frame on the screen or an image. More...
 
class  Geometry
 
class  Integer2D
 
class  Vector2D
 

Enumerations

enum  RotDeg { NINETY, TWO_NINETY, THREE_NINETY }
 

Functions

Integer2D operator* (int scalar, const Integer2D &right)
 Method that returns a integer equal to the a integer multiplied by a scalar. More...
 
Vector2D operator* (double scalar, const Integer2D &right)
 Method that returns a vector equal to the a integer multiplied by a double. More...
 
Vector2D operator* (double scalar, const Vector2D &right)
 Method that returns a vector equal to the a vector multiplied by a scalar. More...
 

Enumeration Type Documentation

Enumerator
NINETY 
TWO_NINETY 
THREE_NINETY 

Function Documentation

Integer2D ugdk::math::operator* ( int  scalar,
const Integer2D &  right 
)

Method that returns a integer equal to the a integer multiplied by a scalar.

A integer (x,y) multiplied by a scalar a is equal to the integer (x * scalar, y*scalar)

Returns
Scalar Multiplied Integer
Vector2D ugdk::math::operator* ( double  scalar,
const Vector2D &  right 
)

Method that returns a vector equal to the a vector multiplied by a scalar.

A vector (x,y) multiplied by a scalar a is equal to the vector (x * scalar, y*scalar)

Returns
Scalar Multiplied Vector
Vector2D ugdk::math::operator* ( double  scalar,
const Integer2D &  right 
)

Method that returns a vector equal to the a integer multiplied by a double.

A Vector (x,y) multiplied by a scalar a is equal to the vector (x * scalar, y * scalar)

Returns
Scalar Multiplied Vector