#include <maloc/maloc_base.h>
Go to the source code of this file.
Defines | |
#define | INEXACT |
Parameters and constants "INEXACT". | |
#define | REAL double |
float or double | |
#define | REALPRINT doubleprint |
Print the bit representation of a double. | |
#define | REALRAND doublerand |
Generate a double with random 53-bit significand and a random exponent in [0, 511]. | |
#define | NARROWRAND narrowdoublerand |
Generate a double with random 53-bit significand and a random exponent in [0, 7]. | |
#define | UNIFORMRAND uniformdoublerand |
Generate a double with random 53-bit significand. | |
Functions | |
void | Vpred_exactinit (void) |
Initialize the variables used for exact arithmetic. | |
REAL | Vpred_orient2d (REAL *pa, REAL *pb, REAL *pc) |
Adaptive exact 2D orientation test. Robust. | |
REAL | Vpred_orient2dfast (REAL *pa, REAL *pb, REAL *pc) |
Approximate 2D orientation test. Nonrobust. | |
REAL | Vpred_orient2dexact (REAL *pa, REAL *pb, REAL *pc) |
Exact 2D orientation test. Robust. | |
REAL | Vpred_orient3d (REAL *pa, REAL *pb, REAL *pc, REAL *pd) |
Adaptive exact 3D orientation test. Robust. | |
REAL | Vpred_orient3dfast (REAL *pa, REAL *pb, REAL *pc, REAL *pd) |
Approximate 3D orientation test. Nonrobust. | |
REAL | Vpred_orient3dexact (REAL *pa, REAL *pb, REAL *pc, REAL *pd) |
Exact 3D orientation test. Robust. | |
REAL | Vpred_incircle (REAL *pa, REAL *pb, REAL *pc, REAL *pd) |
Adaptive exact 2D incircle test. Robust. | |
REAL | Vpred_incirclefast (REAL *pa, REAL *pb, REAL *pc, REAL *pd) |
Approximate 2D incircle test. Nonrobust. | |
REAL | Vpred_incircleexact (REAL *pa, REAL *pb, REAL *pc, REAL *pd) |
Exact 2D incircle test. Robust. | |
REAL | Vpred_insphere (REAL *pa, REAL *pb, REAL *pc, REAL *pd, REAL *pe) |
Adaptive exact 3D insphere test. Robust. | |
REAL | Vpred_inspherefast (REAL *pa, REAL *pb, REAL *pc, REAL *pd, REAL *pe) |
Approximate 3D insphere test. Nonrobust. | |
REAL | Vpred_insphereexact (REAL *pa, REAL *pb, REAL *pc, REAL *pd, REAL *pe) |
Exact 3D insphere test. Robust. |
* * MALOC = < Minimal Abstraction Layer for Object-oriented C > * Copyright (C) 1994--2008 Michael Holst * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *
#define INEXACT |
Parameters and constants "INEXACT".
#define NARROWRAND narrowdoublerand |
Generate a double with random 53-bit significand and a random exponent in [0, 7].
#define REAL double |
float or double
#define REALPRINT doubleprint |
Print the bit representation of a double.
#define REALRAND doublerand |
Generate a double with random 53-bit significand and a random exponent in [0, 511].
#define UNIFORMRAND uniformdoublerand |
Generate a double with random 53-bit significand.
void Vpred_exactinit | ( | void | ) |
Initialize the variables used for exact arithmetic.
REAL Vpred_incircle | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd | |||
) |
Adaptive exact 2D incircle test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter |
REAL Vpred_incircleexact | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd | |||
) |
Exact 2D incircle test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter |
REAL Vpred_incirclefast | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd | |||
) |
Approximate 2D incircle test. Nonrobust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter |
REAL Vpred_insphere | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd, | |||
REAL * | pe | |||
) |
Adaptive exact 3D insphere test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter | |
pe | Pointer to a real parameter |
REAL Vpred_insphereexact | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd, | |||
REAL * | pe | |||
) |
Exact 3D insphere test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter | |
pe | Pointer to a real parameter |
REAL Vpred_inspherefast | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd, | |||
REAL * | pe | |||
) |
Approximate 3D insphere test. Nonrobust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter | |
pe | Pointer to a real parameter |
REAL Vpred_orient2d | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc | |||
) |
Adaptive exact 2D orientation test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter |
REAL Vpred_orient2dexact | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc | |||
) |
Exact 2D orientation test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter |
REAL Vpred_orient2dfast | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc | |||
) |
Approximate 2D orientation test. Nonrobust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter |
REAL Vpred_orient3d | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd | |||
) |
Adaptive exact 3D orientation test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter |
REAL Vpred_orient3dexact | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd | |||
) |
Exact 3D orientation test. Robust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter |
REAL Vpred_orient3dfast | ( | REAL * | pa, | |
REAL * | pb, | |||
REAL * | pc, | |||
REAL * | pd | |||
) |
Approximate 3D orientation test. Nonrobust.
pa | Pointer to a real parameter | |
pb | Pointer to a real parameter | |
pc | Pointer to a real parameter | |
pd | Pointer to a real parameter |