@@ -29,14 +29,6 @@ def world_transformation(xmin, xmax,
29
29
[ 0 , 0 , 0 , 1 ]])
30
30
31
31
32
- @_api .deprecated ("3.8" )
33
- def rotation_about_vector (v , angle ):
34
- """
35
- Produce a rotation matrix for an angle in radians about a vector.
36
- """
37
- return _rotation_about_vector (v , angle )
38
-
39
-
40
32
def _rotation_about_vector (v , angle ):
41
33
"""
42
34
Produce a rotation matrix for an angle in radians about a vector.
@@ -116,32 +108,6 @@ def _view_transformation_uvw(u, v, w, E):
116
108
return M
117
109
118
110
119
- @_api .deprecated ("3.8" )
120
- def view_transformation (E , R , V , roll ):
121
- """
122
- Return the view transformation matrix.
123
-
124
- Parameters
125
- ----------
126
- E : 3-element numpy array
127
- The coordinates of the eye/camera.
128
- R : 3-element numpy array
129
- The coordinates of the center of the view box.
130
- V : 3-element numpy array
131
- Unit vector in the direction of the vertical axis.
132
- roll : float
133
- The roll angle in radians.
134
- """
135
- u , v , w = _view_axes (E , R , V , roll )
136
- M = _view_transformation_uvw (u , v , w , E )
137
- return M
138
-
139
-
140
- @_api .deprecated ("3.8" )
141
- def persp_transformation (zfront , zback , focal_length ):
142
- return _persp_transformation (zfront , zback , focal_length )
143
-
144
-
145
111
def _persp_transformation (zfront , zback , focal_length ):
146
112
e = focal_length
147
113
a = 1 # aspect ratio
@@ -154,11 +120,6 @@ def _persp_transformation(zfront, zback, focal_length):
154
120
return proj_matrix
155
121
156
122
157
- @_api .deprecated ("3.8" )
158
- def ortho_transformation (zfront , zback ):
159
- return _ortho_transformation (zfront , zback )
160
-
161
-
162
123
def _ortho_transformation (zfront , zback ):
163
124
# note: w component in the resulting vector will be (zback-zfront), not 1
164
125
a = - (zfront + zback )
@@ -217,11 +178,6 @@ def proj_transform(xs, ys, zs, M):
217
178
return _proj_transform_vec (vec , M )
218
179
219
180
220
- transform = _api .deprecated (
221
- "3.8" , obj_type = "function" , name = "transform" ,
222
- alternative = "proj_transform" )(proj_transform )
223
-
224
-
225
181
@_api .deprecated ("3.10" )
226
182
def proj_transform_clip (xs , ys , zs , M ):
227
183
return _proj_transform_clip (xs , ys , zs , M , focal_length = np .inf )
@@ -237,30 +193,10 @@ def _proj_transform_clip(xs, ys, zs, M, focal_length):
237
193
return _proj_transform_vec_clip (vec , M , focal_length )
238
194
239
195
240
- @_api .deprecated ("3.8" )
241
- def proj_points (points , M ):
242
- return _proj_points (points , M )
243
-
244
-
245
196
def _proj_points (points , M ):
246
197
return np .column_stack (_proj_trans_points (points , M ))
247
198
248
199
249
- @_api .deprecated ("3.8" )
250
- def proj_trans_points (points , M ):
251
- return _proj_trans_points (points , M )
252
-
253
-
254
200
def _proj_trans_points (points , M ):
255
201
xs , ys , zs = zip (* points )
256
202
return proj_transform (xs , ys , zs , M )
257
-
258
-
259
- @_api .deprecated ("3.8" )
260
- def rot_x (V , alpha ):
261
- cosa , sina = np .cos (alpha ), np .sin (alpha )
262
- M1 = np .array ([[1 , 0 , 0 , 0 ],
263
- [0 , cosa , - sina , 0 ],
264
- [0 , sina , cosa , 0 ],
265
- [0 , 0 , 0 , 1 ]])
266
- return np .dot (M1 , V )
0 commit comments