Commit 9c539610 authored by David Bommes's avatar David Bommes
Browse files

Added documentation of position, normal, xdir, ydir and fixed cross product orientation bug

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7327 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2eef53bd
......@@ -205,7 +205,7 @@ void PlaneNode::setPosition(const Vec3f& _position, const Vec3f& _normal)
xDirection_[ (comp + 2) % 3 ] = 1;
xDirection_ = xDirection_.normalize();
yDirection_ = xDirection_ % _normal;
yDirection_ = _normal % xDirection_;
yDirection_ = yDirection_.normalize();
position_ = _position;
......
......@@ -97,10 +97,11 @@ class ACGDLLEXPORT PlaneNode : public BaseNode
/// draw Coordsys for object picking
void pick(GLState& _state, PickTarget _target);
/// set position
/// set center position and normal of plane
void setPosition(const Vec3f& _position, const Vec3f& _normal);
/// set position
/// set center position, local xdirection (multiplied with width)
/// and local ydirection (multiplied with height)
void setPosition(const Vec3f& _position, const Vec3f& _xDirection, const Vec3f& _yDirection);
/// tranform the plane with given matrix
......@@ -113,16 +114,16 @@ class ACGDLLEXPORT PlaneNode : public BaseNode
bool manipulatorVisible();
/// get current position
/// get center position of the plane
Vec3f position();
/// get current normal
Vec3f normal();
/// local x direction
/// local x direction (multiplied with width)
Vec3f xDirection();
/// local y direction
/// local y direction (multiplied with height)
Vec3f yDirection();
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment