54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
// Filename: lineEmitter.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_endpoint1
|
|
// Access : Public
|
|
// Description : endpoint assignment
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LineEmitter::
|
|
set_endpoint1(const LPoint3f& point) {
|
|
_endpoint1 = point;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_endpoint2
|
|
// Access : Public
|
|
// Description : endpoint assignment
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LineEmitter::
|
|
set_endpoint2(const LPoint3f& point) {
|
|
_endpoint2 = point;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_endpoint1
|
|
// Access : Public
|
|
// Description : endpoint accessor
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE LPoint3f LineEmitter::
|
|
get_endpoint1() const {
|
|
return _endpoint1;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_endpoint2
|
|
// Access : Public
|
|
// Description : endpoint accessor
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE LPoint3f LineEmitter::
|
|
get_endpoint2() const {
|
|
return _endpoint2;
|
|
}
|