Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Classes | Functions
coordTypes.h File Reference
#include "math.h"
#include "misc.h"
Include dependency graph for coordTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Coord3d
 
class  Coord3f
 
class  Coord3i
 

Functions

void normcrossprod (double *v1, double *v2, double *norm)
 
double pointdistance (Coord3i &p1, Coord3i &p2, const double spacing[3])
 
int transWorldToImage (Coord3d loc_world, int *loc_img, double *origin, int *dims, double voxelsize)
 
int transWorldToImage (double *loc_world, int *loc_img, double *origin, int *dims, double voxelsize)
 
double vec_length (Coord3d x)
 
double vec_length (double *x)
 
double vec_length (double *x, double *y)
 
double vectorangle (double *v1, double *v2)
 
double vectorangle (Coord3d v1, Coord3d v2)
 

Function Documentation

◆ normcrossprod()

void normcrossprod ( double *  v1,
double *  v2,
double *  norm 
)
inline

Definition at line 91 of file coordTypes.h.

◆ pointdistance()

double pointdistance ( Coord3i p1,
Coord3i p2,
const double  spacing[3] 
)
inline

Definition at line 82 of file coordTypes.h.

◆ transWorldToImage() [1/2]

int transWorldToImage ( Coord3d  loc_world,
int *  loc_img,
double *  origin,
int *  dims,
double  voxelsize 
)
inline

Definition at line 152 of file coordTypes.h.

◆ transWorldToImage() [2/2]

int transWorldToImage ( double *  loc_world,
int *  loc_img,
double *  origin,
int *  dims,
double  voxelsize 
)
inline

Definition at line 173 of file coordTypes.h.

◆ vec_length() [1/3]

double vec_length ( Coord3d  x)
inline

Definition at line 136 of file coordTypes.h.

◆ vec_length() [2/3]

double vec_length ( double *  x)
inline

Definition at line 141 of file coordTypes.h.

◆ vec_length() [3/3]

double vec_length ( double *  x,
double *  y 
)
inline

Definition at line 146 of file coordTypes.h.

◆ vectorangle() [1/2]

double vectorangle ( double *  v1,
double *  v2 
)
inline

Definition at line 108 of file coordTypes.h.

◆ vectorangle() [2/2]

double vectorangle ( Coord3d  v1,
Coord3d  v2 
)
inline

Definition at line 123 of file coordTypes.h.