|
Revision 1270, 1.3 kB
(checked in by ArcRiley, 5 months ago)
|
|
Pyrex 0.9.8.2 fixes :
- updated some of _datatypes.HashTable?
- numerous fixes to soy.shapes
- numerous fixes to soy.fields
|
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | # PySoy shapes declarations |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2006,2007,2008 PySoy Group |
|---|
| 4 | # |
|---|
| 5 | # This program is free software; you can redistribute it and/or modify |
|---|
| 6 | # it under the terms of the GNU Affero General Public License as published |
|---|
| 7 | # by the Free Software Foundation, either version 3 of the License, or |
|---|
| 8 | # (at your option) any later version. |
|---|
| 9 | # |
|---|
| 10 | # This program is distributed in the hope that it will be useful, |
|---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | # GNU Affero General Public License for more details. |
|---|
| 14 | # |
|---|
| 15 | # You should have received a copy of the GNU Affero General Public License |
|---|
| 16 | # along with this program; if not, see http://www.gnu.org/licenses |
|---|
| 17 | # |
|---|
| 18 | # $Id$ |
|---|
| 19 | |
|---|
| 20 | cimport stdio |
|---|
| 21 | cimport ode |
|---|
| 22 | cimport soy._internals |
|---|
| 23 | |
|---|
| 24 | cdef class Shape : |
|---|
| 25 | cdef ode.dGeomID _geomID |
|---|
| 26 | cdef ode.dReal* _position |
|---|
| 27 | cdef float _pointDepth(self, float, float, float) nogil |
|---|
| 28 | cdef float _radius(self) nogil |
|---|
| 29 | cdef int _finite(self) nogil |
|---|
| 30 | cdef float _volume(self) nogil |
|---|
| 31 | |
|---|
| 32 | cdef extern from "math.h" nogil : |
|---|
| 33 | float powf (float x, float y) |
|---|
| 34 | |
|---|