vanishing-point.cpp revision 536ac52055722b168e4482f612302fa754dc4f72
#define __VANISHING_POINT_C__
/*
* Vanishing point for 3D perspectives
*
* Authors:
* Maximilian Albert <Anhalter42@gmx.de>
*
* Copyright (C) 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "vanishing-point.h"
namespace Box3D {
// FIXME: We should always require to have both the point (for finite VPs)
// and the direction (for infinite VPs) set. Otherwise toggling
// shows very unexpected behaviour.
// Later on we can maybe infer the infinite direction from the finite point
// and a suitable center of the scene. How to go in the other direction?
{
//this->ref_pt = rhs.ref_pt;
}
bool VanishingPoint::is_finite()
{
}
{
this->state = VP_INFINITE;
} else {
}
return this->state;
}
{
switch (axis) {
case X:
else
break;
case Y:
else
break;
case Z:
else
break;
default:
break;
}
}
} // namespace Box3D
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :