@@ -29,14 +29,6 @@ def world_transformation(xmin, xmax,
2929 [ 0 , 0 , 0 , 1 ]])
3030
3131
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-
4032def _rotation_about_vector (v , angle ):
4133 """
4234 Produce a rotation matrix for an angle in radians about a vector.
@@ -116,32 +108,6 @@ def _view_transformation_uvw(u, v, w, E):
116108 return M
117109
118110
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-
145111def _persp_transformation (zfront , zback , focal_length ):
146112 e = focal_length
147113 a = 1 # aspect ratio
@@ -154,11 +120,6 @@ def _persp_transformation(zfront, zback, focal_length):
154120 return proj_matrix
155121
156122
157- @_api .deprecated ("3.8" )
158- def ortho_transformation (zfront , zback ):
159- return _ortho_transformation (zfront , zback )
160-
161-
162123def _ortho_transformation (zfront , zback ):
163124 # note: w component in the resulting vector will be (zback-zfront), not 1
164125 a = - (zfront + zback )
@@ -217,11 +178,6 @@ def proj_transform(xs, ys, zs, M):
217178 return _proj_transform_vec (vec , M )
218179
219180
220- transform = _api .deprecated (
221- "3.8" , obj_type = "function" , name = "transform" ,
222- alternative = "proj_transform" )(proj_transform )
223-
224-
225181@_api .deprecated ("3.10" )
226182def proj_transform_clip (xs , ys , zs , M ):
227183 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):
237193 return _proj_transform_vec_clip (vec , M , focal_length )
238194
239195
240- @_api .deprecated ("3.8" )
241- def proj_points (points , M ):
242- return _proj_points (points , M )
243-
244-
245196def _proj_points (points , M ):
246197 return np .column_stack (_proj_trans_points (points , M ))
247198
248199
249- @_api .deprecated ("3.8" )
250- def proj_trans_points (points , M ):
251- return _proj_trans_points (points , M )
252-
253-
254200def _proj_trans_points (points , M ):
255201 xs , ys , zs = zip (* points )
256202 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