ElfPSP_ParallelABC
Protein Structure Prediction using Parallel Artificial Bee Colony Optimization
Classes | Macros | Typedefs | Functions
int3d.h File Reference

Routines for mathematical manipulation of vectors and points in the integer space. More...

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  int3d_
 Type for representing a tridimensional coordinate. More...
 

Macros

#define INT3D_INLINE   inline
 

Typedefs

typedef struct int3d_ int3d
 Type for representing a tridimensional coordinate. More...
 

Functions

INT3D_INLINE int3d int3d_make (int x, int y, int z)
 Creates an int3d. More...
 
INT3D_INLINE int3d int3d_add (int3d a, int3d b)
 Adds two int3d objects. More...
 
INT3D_INLINE bool int3d_isDist1 (int3d a, int3d b)
 Verifies if a and b are within a distance of exactly 1 from each other. More...
 
INT3D_INLINE bool int3d_equal (int3d a, int3d b)
 Verifies if a and b are equal. More...
 
INT3D_INLINE void int3d_print (int3d a, FILE *fp)
 Prints the given int3d object, without placing a newline. More...
 

Detailed Description

Routines for mathematical manipulation of vectors and points in the integer space.

Typedef Documentation

◆ int3d

typedef struct int3d_ int3d

Type for representing a tridimensional coordinate.

Function Documentation

◆ int3d_add()

INT3D_INLINE int3d int3d_add ( int3d  a,
int3d  b 
)

Adds two int3d objects.

◆ int3d_equal()

INT3D_INLINE bool int3d_equal ( int3d  a,
int3d  b 
)

Verifies if a and b are equal.

◆ int3d_isDist1()

INT3D_INLINE bool int3d_isDist1 ( int3d  a,
int3d  b 
)

Verifies if a and b are within a distance of exactly 1 from each other.

◆ int3d_make()

INT3D_INLINE int3d int3d_make ( int  x,
int  y,
int  z 
)

Creates an int3d.

◆ int3d_print()

INT3D_INLINE void int3d_print ( int3d  a,
FILE *  fp 
)

Prints the given int3d object, without placing a newline.