open_toontown_panda3d/panda/src/sgraph/planeNode.cxx

49 lines
1.5 KiB
C++

// Filename: planeNode.cxx
// Created by: mike (09Jan97)
//
////////////////////////////////////////////////////////////////////
//
////////////////////////////////////////////////////////////////////
// Includes
////////////////////////////////////////////////////////////////////
#include "planeNode.h"
////////////////////////////////////////////////////////////////////
// Static variables
////////////////////////////////////////////////////////////////////
TypeHandle PlaneNode::_type_handle;
////////////////////////////////////////////////////////////////////
// Function: PlaneNode::make_copy
// Access: Public, Virtual
// Description: Returns a newly-allocated Node that is a shallow copy
// of this one. It will be a different Node pointer,
// but its internal data may or may not be shared with
// that of the original Node.
////////////////////////////////////////////////////////////////////
Node *PlaneNode::
make_copy() const {
return new PlaneNode(*this);
}
////////////////////////////////////////////////////////////////////
// Function: set_plane
// Access:
// Description:
////////////////////////////////////////////////////////////////////
void PlaneNode::set_plane(const Planef& plane)
{
_plane = plane;
}
////////////////////////////////////////////////////////////////////
// Function: get_plane
// Access:
// Description:
////////////////////////////////////////////////////////////////////
const Planef& PlaneNode::get_plane(void) const
{
return _plane;
}