Skip to content

Commit 5160dbc

Browse files
committed
Removed odd functions
1 parent 6ec64a2 commit 5160dbc

File tree

7 files changed

+0
-782
lines changed

7 files changed

+0
-782
lines changed

include/lsp-plug.in/dsp/common/3dmath.h

Lines changed: 0 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -302,32 +302,6 @@ LSP_DSP_LIB_SYMBOL(void, init_matrix3d_lookat_p2v1, LSP_DSP_LIB_TYPE(matrix3d_t)
302302
*/
303303
LSP_DSP_LIB_SYMBOL(void, init_matrix3d_orientation, LSP_DSP_LIB_TYPE(matrix3d_t) *m, LSP_DSP_LIB_TYPE(axis_orientation_t) orientation);
304304

305-
/**
306-
* Compute tranfromation matrix from point and vector data which provides:
307-
* - position of the object (point)
308-
* - direction of the object (vector)
309-
* - scale of the object (length of vector)
310-
* After applying this matrix, the point with coordinates (0, 0, 1)
311-
* will have coordinates (p.x + v.dx, p.y + v.dy, p.z + v.dz)
312-
*
313-
* @param m target matrix
314-
* @param p point that indicates position of the object
315-
* @param v vector that indicates rotation and size of the object
316-
*/
317-
LSP_DSP_LIB_SYMBOL(void, calc_matrix3d_transform_p1v1, LSP_DSP_LIB_TYPE(matrix3d_t) *m, const LSP_DSP_LIB_TYPE(point3d_t) *p, const LSP_DSP_LIB_TYPE(vector3d_t) *v);
318-
319-
/**
320-
* Compute tranfromation matrix from ray data which provides:
321-
* - position of the object (point)
322-
* - direction of the object (vector)
323-
* - scale of the object (length of vector)
324-
* After applying this matrix, the point with coordinates (0, 0, 1)
325-
* will have coordinates (r.z.x + r.v.dx, r.z.y + r.v.dy, r.z.z + r.v.dz)
326-
* @param m target matrix
327-
* @param r ray that indicates position, rotation and size of the object
328-
*/
329-
LSP_DSP_LIB_SYMBOL(void, calc_matrix3d_transform_r1, LSP_DSP_LIB_TYPE(matrix3d_t) *m, const LSP_DSP_LIB_TYPE(ray3d_t) *r);
330-
331305
/** Apply matrix to vector
332306
*
333307
* @param r target vector
@@ -386,113 +360,6 @@ LSP_DSP_LIB_SYMBOL(void, transpose_matrix3d1, LSP_DSP_LIB_TYPE(matrix3d_t) *r);
386360
*/
387361
LSP_DSP_LIB_SYMBOL(void, transpose_matrix3d2, LSP_DSP_LIB_TYPE(matrix3d_t) *r, const LSP_DSP_LIB_TYPE(matrix3d_t) *m);
388362

389-
/** Initialize ray using coordinates of 2 points
390-
*
391-
* @param l ray to initialize
392-
* @param x0 source point X coordinate
393-
* @param y0 source point Y coordinate
394-
* @param z0 source point Z coordinate
395-
* @param x1 destination point X coordinate
396-
* @param y1 destination point X coordinate
397-
* @param z1 destination point X coordinate
398-
*/
399-
LSP_DSP_LIB_SYMBOL(void, init_ray_xyz, LSP_DSP_LIB_TYPE(ray3d_t) *l, float x0, float y0, float z0, float x1, float y1, float z1);
400-
401-
/** Initialize ray using coordinate of start point and direction vector
402-
*
403-
* @param l ray to initialize
404-
* @param x0 source point X coordinate
405-
* @param y0 source point Y coordinate
406-
* @param z0 source point Z coordinate
407-
* @param dx direction vector X projection
408-
* @param dy direction vector Y projection
409-
* @param dz direction vector Z projection
410-
*/
411-
LSP_DSP_LIB_SYMBOL(void, init_ray_dxyz, LSP_DSP_LIB_TYPE(ray3d_t) *l, float x0, float y0, float z0, float dx, float dy, float dz);
412-
413-
/** Initialize ray using point and vector object
414-
*
415-
* @param l ray to initialize
416-
* @param p source point
417-
* @param v direction vector
418-
*/
419-
LSP_DSP_LIB_SYMBOL(void, init_ray_pdv, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(point3d_t) *p, const LSP_DSP_LIB_TYPE(vector3d_t) *m);
420-
421-
/** Initialize ray using two points
422-
*
423-
* @param l ray to initialize
424-
* @param p1 source point
425-
* @param p2 destination point
426-
*/
427-
LSP_DSP_LIB_SYMBOL(void, init_ray_p2, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(point3d_t) *p1, const LSP_DSP_LIB_TYPE(point3d_t) *p2);
428-
429-
/** Initialize ray using array of two points
430-
*
431-
* @param l ray to initialize
432-
* @param p array of two points to initialize
433-
*/
434-
LSP_DSP_LIB_SYMBOL(void, init_ray_pv, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(point3d_t) *p);
435-
436-
/** Initialize ray using another ray
437-
*
438-
* @param l ray to initialize
439-
* @param r source ray
440-
*/
441-
LSP_DSP_LIB_SYMBOL(void, init_ray, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(ray3d_t) *r);
442-
443-
/** Calculate ray using coordinates of 2 points
444-
*
445-
* @param l ray to initialize
446-
* @param x0 source point X coordinate
447-
* @param y0 source point Y coordinate
448-
* @param z0 source point Z coordinate
449-
* @param x1 destination point X coordinate
450-
* @param y1 destination point X coordinate
451-
* @param z1 destination point X coordinate
452-
*/
453-
LSP_DSP_LIB_SYMBOL(void, calc_ray_xyz, LSP_DSP_LIB_TYPE(ray3d_t) *l, float x0, float y0, float z0, float x1, float y1, float z1);
454-
455-
/** Calculate ray using coordinate of start point and direction vector
456-
*
457-
* @param l ray to initialize
458-
* @param x0 source point X coordinate
459-
* @param y0 source point Y coordinate
460-
* @param z0 source point Z coordinate
461-
* @param dx direction vector X projection
462-
* @param dy direction vector Y projection
463-
* @param dz direction vector Z projection
464-
*/
465-
LSP_DSP_LIB_SYMBOL(void, calc_ray_dxyz, LSP_DSP_LIB_TYPE(ray3d_t) *l, float x0, float y0, float z0, float dx, float dy, float dz);
466-
467-
/** Calculate ray using another ray
468-
*
469-
* @param l ray to initialize
470-
* @param r source ray
471-
*/
472-
LSP_DSP_LIB_SYMBOL(void, calc_ray_pdv, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(point3d_t) *p, const LSP_DSP_LIB_TYPE(vector3d_t) *m);
473-
474-
/** Calculate ray using two points
475-
*
476-
* @param l ray to initialize
477-
* @param p1 source point
478-
* @param p2 destination point
479-
*/
480-
LSP_DSP_LIB_SYMBOL(void, calc_ray_p2, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(point3d_t) *p1, const LSP_DSP_LIB_TYPE(point3d_t) *p2);
481-
482-
/** Calculate ray using array of two points
483-
*
484-
* @param l ray to initialize
485-
* @param p array of two points to initialize
486-
*/
487-
LSP_DSP_LIB_SYMBOL(void, calc_ray_pv, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(point3d_t) *p);
488-
489-
/** Calculate ray using another ray
490-
*
491-
* @param l ray to initialize
492-
* @param r source ray
493-
*/
494-
LSP_DSP_LIB_SYMBOL(void, calc_ray, LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(ray3d_t) *r);
495-
496363
/** Calculate triangle normal and edge lengths
497364
*
498365
* @param t triangle
@@ -713,16 +580,6 @@ LSP_DSP_LIB_SYMBOL(size_t, longest_edge3d_p3, const LSP_DSP_LIB_TYPE(point3d_t)
713580
*/
714581
LSP_DSP_LIB_SYMBOL(size_t, longest_edge3d_pv, const LSP_DSP_LIB_TYPE(point3d_t) *p);
715582

716-
/** Find intersection of ray and triangle
717-
*
718-
* @param ip intersection point to store result
719-
* @param l ray to test intersection
720-
* @param t pre-calculated triangle to check (with plane equation)
721-
* @return actual distance between ray start point and intersection point.
722-
* If value is less than zero, then there is no intersection
723-
*/
724-
LSP_DSP_LIB_SYMBOL(float, find_intersection3d_rt, LSP_DSP_LIB_TYPE(point3d_t) *ip, const LSP_DSP_LIB_TYPE(ray3d_t) *l, const LSP_DSP_LIB_TYPE(triangle3d_t) *t);
725-
726583
/** Calculate angle between two vectors
727584
*
728585
* @param v1 vector 1

include/lsp-plug.in/dsp/common/3dmath/types.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ typedef struct LSP_DSP_LIB_TYPE(color3d_t)
4747
float r, g, b, a;
4848
} LSP_DSP_LIB_TYPE(color3d_t);
4949

50-
typedef struct LSP_DSP_LIB_TYPE(ray3d_t)
51-
{
52-
LSP_DSP_LIB_TYPE(point3d_t) z; // The start point: x, y, z = point coordinates
53-
LSP_DSP_LIB_TYPE(vector3d_t) v; // The spread vector: dx, dy, dz = direction
54-
} LSP_DSP_LIB_TYPE(ray3d_t);
55-
5650
typedef struct LSP_DSP_LIB_TYPE(bound_box3d_t)
5751
{
5852
LSP_DSP_LIB_TYPE(point3d_t) p[8]; // Bounding-box contains 8 points

0 commit comments

Comments
 (0)