mirror of https://github.com/CGAL/cgal
87 lines
1.8 KiB
C
87 lines
1.8 KiB
C
// ======================================================================
|
|
//
|
|
// Copyright (c) 1999 The CGAL Consortium
|
|
//
|
|
// This software and related documentation is part of an INTERNAL release
|
|
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
|
// intended for general use.
|
|
//
|
|
// ----------------------------------------------------------------------
|
|
//
|
|
// release :
|
|
// release_date :
|
|
//
|
|
// file : enum.h
|
|
// package : Kernel_basic
|
|
// revision : $Revision$
|
|
// revision_date : $Date$
|
|
// author(s) : Stefan Schirra
|
|
//
|
|
// coordinator : MPI, Saarbruecken
|
|
// ======================================================================
|
|
|
|
#ifndef CGAL_ENUM_H
|
|
#define CGAL_ENUM_H
|
|
|
|
// If you add/change one type here, please update Is_a_predicate.h as well.
|
|
|
|
CGAL_BEGIN_NAMESPACE
|
|
|
|
enum Sign
|
|
{
|
|
NEGATIVE = -1,
|
|
ZERO,
|
|
POSITIVE
|
|
};
|
|
|
|
typedef Sign Orientation;
|
|
|
|
const Orientation LEFT_TURN = POSITIVE;
|
|
const Orientation RIGHT_TURN = NEGATIVE;
|
|
|
|
#ifndef CGAL_NO_DEPRECATED_CODE
|
|
const Orientation LEFTTURN = POSITIVE;
|
|
const Orientation RIGHTTURN = NEGATIVE;
|
|
#endif
|
|
|
|
const Orientation CLOCKWISE = NEGATIVE;
|
|
const Orientation COUNTERCLOCKWISE = POSITIVE;
|
|
|
|
const Orientation COLLINEAR = ZERO;
|
|
const Orientation COPLANAR = ZERO;
|
|
const Orientation DEGENERATE = ZERO;
|
|
|
|
enum Oriented_side
|
|
{
|
|
ON_NEGATIVE_SIDE = -1,
|
|
ON_ORIENTED_BOUNDARY,
|
|
ON_POSITIVE_SIDE
|
|
};
|
|
|
|
enum Bounded_side
|
|
{
|
|
ON_UNBOUNDED_SIDE = -1,
|
|
ON_BOUNDARY,
|
|
ON_BOUNDED_SIDE
|
|
};
|
|
|
|
enum Comparison_result
|
|
{
|
|
SMALLER = -1,
|
|
EQUAL,
|
|
LARGER
|
|
};
|
|
|
|
enum Angle
|
|
{
|
|
OBTUSE = -1,
|
|
RIGHT,
|
|
ACUTE
|
|
};
|
|
|
|
CGAL_END_NAMESPACE
|
|
|
|
#include <CGAL/functions_on_enums.h>
|
|
|
|
#endif // CGAL_ENUM_H
|