72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
// Filename: linearCylinderVortexForce.I
|
|
// Created by: charles (24Jul00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://www.panda3d.org/license.txt .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d@yahoogroups.com .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_radius
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LinearCylinderVortexForce::
|
|
set_radius(float radius) {
|
|
_radius = radius;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_length
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LinearCylinderVortexForce::
|
|
set_length(float length) {
|
|
_length = length;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : set_coef
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void LinearCylinderVortexForce::
|
|
set_coef(float coef) {
|
|
_coef = coef;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_radius
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float LinearCylinderVortexForce::
|
|
get_radius(void) const {
|
|
return _radius;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_length
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float LinearCylinderVortexForce::
|
|
get_length(void) const {
|
|
return _length;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_coef
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float LinearCylinderVortexForce::
|
|
get_coef(void) const {
|
|
return _coef;
|
|
}
|