Page Menu
Home
Search
Configure Global Search
Log In
Files
F1132
patch-matrix.c
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Ken Hughes (khughes)
Nov 13 2013, 12:54 PM
Size
2 KB
Subscribers
None
patch-matrix.c
View Options
Index
:
source
/
blender
/
python
/
api2_2x
/
matrix
.
c
===================================================================
RCS
file
:
/
cvsroot
/
bf
-
blender
/
blender
/
source
/
blender
/
python
/
api2_2x
/
matrix
.
c
,
v
retrieving
revision
1.26
diff
-
u
-
r1
.26
matrix
.
c
---
source
/
blender
/
python
/
api2_2x
/
matrix
.
c
12
Sep
2005
06
:
18
:
45
-0000
1.26
+++
source
/
blender
/
python
/
api2_2x
/
matrix
.
c
13
Sep
2005
17
:
06
:
46
-0000
@@
-142
,
7
+
142
,
7
@@
}
self
->
rowSize
=
4
;
self
->
colSize
=
4
;
-
return
EXPP_incr_ret
((
PyObject
*
)
self
);
+
return
EXPP_incr_ret
(
Py_None
);
}
//---------------------------Matrix.translationPart() ------------
PyObject
*
Matrix_TranslationPart
(
MatrixObject
*
self
)
@@
-230
,
7
+
230
,
7
@@
}
else
{
printf
(
"Matrix.invert: matrix does not have an inverse
\n
"
);
}
-
return
EXPP_incr_ret
((
PyObject
*
)
self
);
+
return
EXPP_incr_ret
(
Py_None
);
}
//---------------------------Matrix.determinant() ----------------
PyObject
*
Matrix_Determinant
(
MatrixObject
*
self
)
@@
-277
,
7
+
277
,
7
@@
Mat4Transp
((
float
(
*
)[
4
])
*
self
->
matrix
);
}
-
return
EXPP_incr_ret
((
PyObject
*
)
self
);
+
return
EXPP_incr_ret
(
Py_None
);
}
//---------------------------Matrix.zero() -----------------------
PyObject
*
Matrix_Zero
(
MatrixObject
*
self
)
@@
-289
,
7
+
289
,
7
@@
self
->
matrix
[
row
][
col
]
=
0.0f
;
}
}
-
return
EXPP_incr_ret
((
PyObject
*
)
self
);
+
return
EXPP_incr_ret
(
Py_None
);
}
//---------------------------Matrix.identity(() ------------------
PyObject
*
Matrix_Identity
(
MatrixObject
*
self
)
@@
-310
,
7
+
310
,
7
@@
Mat4One
((
float
(
*
)[
4
])
*
self
->
matrix
);
}
-
return
EXPP_incr_ret
((
PyObject
*
)
self
);
+
return
EXPP_incr_ret
(
Py_None
);
}
//----------------------------dealloc()(internal) ----------------
//free the py_object
@@
-372
,
7
+
372
,
7
@@
}
}
-
return
EXPP_incr_ret
(
PyString_FromString
(
str
));
+
return
PyString_FromString
(
str
);
}
//---------------------SEQUENCE PROTOCOLS------------------------
@@
-456
,
7
+
456
,
7
@@
newVectorObject
(
self
->
matrix
[
count
],
self
->
colSize
,
Py_WRAP
));
}
-
return
EXPP_incr_ret
(
list
);
+
return
list
;
}
//----------------------------object[z:y]------------------------
//sequence slice (set)
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/f2/464ddfd88fe0a4a41c0f301aa658
Event Timeline
Log In to Comment