liba 0.1.15
An algorithm library based on C/C++
Loading...
Searching...
No Matches
three-dimensional point
Collaboration diagram for three-dimensional point:

Data Structures

struct  a_point3
 instance structure for three-dimensional point More...

Macros

#define A_POINT3_C(x, y, z)
#define a_point3_c(x)
#define a_point3_(_, x)
#define A_INTERN   A_PUBLIC extern
#define A_INTERN   static A_INLINE

Typedefs

typedef struct a_point3 a_point3

Functions

void a_vector3_set (a_vector3 *ctx, a_point3 const *p, a_point3 const *q)
void a_point3_val (a_point3 const *ctx, a_real *x, a_real *y, a_real *z)
void a_point3_set_val (a_point3 *ctx, a_real x, a_real y, a_real z)
void a_point3_pol (a_point3 const *ctx, a_real *rho, a_real *theta, a_real *z)
void a_point3_set_pol (a_point3 *ctx, a_real rho, a_real theta, a_real z)
void a_point3_sph (a_point3 const *ctx, a_real *rho, a_real *theta, a_real *alpha)
void a_point3_set_sph (a_point3 *ctx, a_real rho, a_real theta, a_real alpha)
void a_point3_add (a_point3 const *lhs, a_vector3 const *rhs, a_point3 *res)
void a_point3_sub (a_point3 const *lhs, a_vector3 const *rhs, a_point3 *res)
void a_point3_mul (a_point3 const *lhs, a_real rhs, a_point3 *res)
void a_point3_div (a_point3 const *lhs, a_real rhs, a_point3 *res)
void a_point3_pos (a_point3 const *ctx, a_vector3 *res)
void a_point3_neg (a_point3 const *ctx, a_vector3 *res)
a_real a_point3_dist (a_point3 const *lhs, a_point3 const *rhs)
a_real a_point3_dist1 (a_point3 const *lhs, a_point3 const *rhs)
a_real a_point3_dist2 (a_point3 const *lhs, a_point3 const *rhs)
void a_vector3::set (a_point3 const &p, a_point3 const &q)

Detailed Description

Macro Definition Documentation

◆ a_point3_

#define a_point3_ ( _,
x )
Value:
a_cast_s(a_point3 _, x)
instance structure for three-dimensional point
Definition point3.h:77

◆ A_POINT3_C

#define A_POINT3_C ( x,
y,
z )
Value:
#define a_real_c(x)
static cast to floating-point number
Definition a.h:1009

constructs a three-dimensional point from cartesian coordinate

◆ a_point3_c

#define a_point3_c ( x)
Value:
a_cast_s(a_point3, x)

static cast to three-dimensional point