liba 0.1.15
An algorithm library based on C/C++
Loading...
Searching...
No Matches
plane.h File Reference

three-dimensional plane More...

#include "a.h"
#include "line3.h"
Include dependency graph for plane.h:

Go to the source code of this file.

Data Structures

struct  a_plane
 instance structure for three-dimensional plane More...

Macros

#define a_plane_c(x)
#define a_plane_(_, x)
#define A_INTERN   A_PUBLIC extern
#define A_INTERN   static A_INLINE

Typedefs

typedef struct a_plane a_plane
typedef struct a_plane a::plane

Functions

externa_point3 const * a_plane_org (a_plane const *ctx)
externa_vector3 const * a_plane_dir (a_plane const *ctx)
externa_vector3 const * a_plane_u (a_plane const *ctx)
externa_vector3 const * a_plane_v (a_plane const *ctx)
externvoid a_plane_set_org (a_plane *ctx, a_real x, a_real y, a_real z)
int a_plane_set_dir (a_plane *ctx, a_real x, a_real y, a_real z)
A_EXPORT int a_plane_set_uv (a_plane *ctx, a_vector3 const *u, a_vector3 const *v)
A_EXPORT int a_plane_set_u (a_plane *ctx, a_vector3 const *n, a_vector3 const *u)
A_EXPORT int a_plane_set_v (a_plane *ctx, a_vector3 const *n, a_vector3 const *v)
int a_plane_set (a_plane *ctx, a_point3 const *p, a_vector3 const *n)
int a_plane_set3 (a_plane *ctx, a_point3 const *p1, a_point3 const *p2, a_point3 const *p3)
int a_plane_set4 (a_plane *ctx, a_real a, a_real b, a_real c, a_real d)
void a_plane_eval (a_plane const *ctx, a_real u, a_real v, a_point3 *res)
void a_plane_parm (a_plane const *ctx, a_point3 const *p, a_real *u, a_real *v)
a_real a_plane_proj (a_plane const *ctx, a_point3 const *p, a_point3 *res)
a_real a_plane_sdist (a_plane const *ctx, a_point3 const *rhs)
a_real a_plane_dist (a_plane const *ctx, a_point3 const *rhs)
int a_plane_int0 (a_plane const *ctx, a_point3 const *rhs, a_real *u, a_real *v)
int a_plane_int1 (a_plane const *ctx, a_line3 const *rhs, a_real min, a_real max, a_real *w)
int a_plane_int2 (a_plane const *ctx, a_plane const *rhs, a_line3 *res)
void a_plane_rot2d (a_plane *ctx, a_real angle)

Detailed Description

three-dimensional plane