68 lines
2.1 KiB
Plaintext
68 lines
2.1 KiB
Plaintext
// Filename: linearCylinderVortexForce.I
|
|
// Created by: charles (24Jul00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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_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() const {
|
|
return _radius;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_length
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float LinearCylinderVortexForce::
|
|
get_length() const {
|
|
return _length;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function : get_coef
|
|
// Access : public
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float LinearCylinderVortexForce::
|
|
get_coef() const {
|
|
return _coef;
|
|
}
|