Open Broadcaster Software
Free, open source software for live streaming and recording
plane.h File Reference

Go to the source code of this file.

Data Structures

struct  plane
 

Functions

EXPORT void plane_from_tri (struct plane *dst, const struct vec3 *v1, const struct vec3 *v2, const struct vec3 *v3)
 
EXPORT void plane_transform (struct plane *dst, const struct plane *p, const struct matrix4 *m)
 
EXPORT void plane_transform3x4 (struct plane *dst, const struct plane *p, const struct matrix3 *m)
 
EXPORT bool plane_intersection_ray (const struct plane *p, const struct vec3 *orig, const struct vec3 *dir, float *t)
 
EXPORT bool plane_intersection_line (const struct plane *p, const struct vec3 *v1, const struct vec3 *v2, float *t)
 
EXPORT bool plane_tri_inside (const struct plane *p, const struct vec3 *v1, const struct vec3 *v2, const struct vec3 *v3, float precision)
 
EXPORT bool plane_line_inside (const struct plane *p, const struct vec3 *v1, const struct vec3 *v2, float precision)
 

Function Documentation

◆ plane_from_tri()

EXPORT void plane_from_tri ( struct plane dst,
const struct vec3 v1,
const struct vec3 v2,
const struct vec3 v3 
)

◆ plane_intersection_line()

EXPORT bool plane_intersection_line ( const struct plane p,
const struct vec3 v1,
const struct vec3 v2,
float *  t 
)

◆ plane_intersection_ray()

EXPORT bool plane_intersection_ray ( const struct plane p,
const struct vec3 orig,
const struct vec3 dir,
float *  t 
)

◆ plane_line_inside()

EXPORT bool plane_line_inside ( const struct plane p,
const struct vec3 v1,
const struct vec3 v2,
float  precision 
)

◆ plane_transform()

EXPORT void plane_transform ( struct plane dst,
const struct plane p,
const struct matrix4 m 
)

◆ plane_transform3x4()

EXPORT void plane_transform3x4 ( struct plane dst,
const struct plane p,
const struct matrix3 m 
)

◆ plane_tri_inside()

EXPORT bool plane_tri_inside ( const struct plane p,
const struct vec3 v1,
const struct vec3 v2,
const struct vec3 v3,
float  precision 
)