origin.h File Reference

#include "ientity.h"
#include "math/matrix.h"
#include "generic/callback.h"
#include "stringio.h"
Include dependency graph for origin.h:

Go to the source code of this file.

Data Structures

class  OriginKey

Defines

#define INCLUDED_ORIGIN_H

Functions

void default_origin (Vector3 &origin)
void read_origin (Vector3 &origin, const std::string &value)
void write_origin (const Vector3 &origin, Entity *entity, const char *key)
Vector3 origin_translated (const Vector3 &origin, const Vector3 &translation)
Vector3 origin_snapped (const Vector3 &origin, float snap)

Variables

const Vector3 ORIGINKEY_IDENTITY = Vector3(0, 0, 0)

Define Documentation

#define INCLUDED_ORIGIN_H

Definition at line 23 of file origin.h.


Function Documentation

void default_origin ( Vector3 origin  )  [inline]

Definition at line 33 of file origin.h.

Referenced by read_origin().

Vector3 origin_snapped ( const Vector3 origin,
float  snap 
) [inline]

Definition at line 56 of file origin.h.

References vector3_snapped().

Vector3 origin_translated ( const Vector3 origin,
const Vector3 translation 
) [inline]

Definition at line 50 of file origin.h.

void read_origin ( Vector3 origin,
const std::string value 
) [inline]

Definition at line 37 of file origin.h.

References default_origin().

Referenced by OriginKey::originChanged().

void write_origin ( const Vector3 origin,
Entity entity,
const char *  key 
) [inline]

Definition at line 43 of file origin.h.

References Entity::setKeyValue().

Referenced by OriginKey::write().


Variable Documentation

Definition at line 31 of file origin.h.


Generated by  doxygen 1.6.2