54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
// Filename: rectangleEmitter.I
|
|
// Created by: charles (26Jun00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_min_bound
|
|
// Access : public
|
|
// Description : boundary set
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void RectangleEmitter::
|
|
set_min_bound(const LPoint2& vmin) {
|
|
_vmin = vmin;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_max_bound
|
|
// Access : public
|
|
// Description : boundary set
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void RectangleEmitter::
|
|
set_max_bound(const LPoint2& vmax) {
|
|
_vmax = vmax;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_min_bound
|
|
// Access : public
|
|
// Description : boundary get
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE LPoint2 RectangleEmitter::
|
|
get_min_bound() const {
|
|
return _vmin;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_max_bound
|
|
// Access : public
|
|
// Description : boundary get
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE LPoint2 RectangleEmitter::
|
|
get_max_bound() const {
|
|
return _vmax;
|
|
}
|