소스 검색

*** empty log message ***

Mike Goslin 25 년 전
부모
커밋
70dea3303f
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 2
      panda/src/physics/angularVectorForce.I
  2. 1 0
      panda/src/physics/angularVectorForce.h

+ 11 - 2
panda/src/physics/angularVectorForce.I

@@ -7,7 +7,7 @@
 // Function : set_vector
 //   Access : public
 ////////////////////////////////////////////////////////////////////
-void AngularVectorForce::
+INLINE void AngularVectorForce::
 set_vector(const LVector3f &v) {
   _fvec = v;
 }
@@ -16,7 +16,16 @@ set_vector(const LVector3f &v) {
 // Function : set_vector
 //   Access : public
 ////////////////////////////////////////////////////////////////////
-void AngularVectorForce::
+INLINE void AngularVectorForce::
 set_vector(float x, float y, float z) {
   _fvec.set(x, y, z);
 }
+
+////////////////////////////////////////////////////////////////////
+// Function : get_vector
+//   Access : public
+////////////////////////////////////////////////////////////////////
+INLINE LVector3f AngularVectorForce::
+get_vector(void) const {
+  return _fvec;
+}

+ 1 - 0
panda/src/physics/angularVectorForce.h

@@ -28,6 +28,7 @@ PUBLISHED:
 
   INLINE void set_vector(const LVector3f& v);
   INLINE void set_vector(float x, float y, float z);
+  INLINE LVector3f get_vector(void) const;
 
 public:
   static TypeHandle get_class_type(void) {