CGAL 介绍

CGAL组织

R`FJ9Z{Y[K[81CA`Z${[4AK

内核

PY@U%}X3~L9{RBY}]WLN9@Yimage

image

数值健壮

基础库

扩展性

2.4 命名约定 Naming

In order to make it easier to remember what kind of entity a particular name refers to, CGAL has a naming convention.

  • 所有全局可视名字都使用CGAL名字空间.
  • 如果名字是由多个单词组成, 由下划线分隔. 如: side_of_bounded_circle
  • 所有类型(类和枚举类型)都是首字母大写, 其它字母小写. 如:Bounded_side 和 Point_2
  • 函数(全局函数或成员函数)全部小写. 如:side_of_bounded_circle(...) 和 Point_2::x().
  • 常量和枚举值全部大写. 如: ON_BOUNDED_SIDE 和 Triangulation2::EDGE
  • All globally visible names are in namespace CGAL. This means that, for instance, you will have to refer to CGAL::ORIGIN, not to ORIGIN. In the text, we will omit the namespace, but in the code, we will use it. The few macros that exist in CGAL all start with a CGAL prefix.
  • If a name is made of several words, those words are separated by underscores. For example, side_of_bounded_circle.
  • All types (classes and enums) start with one uppercase letter and are all lowercase for the rest. Examples are Bounded_side and Point_2.
  • Functions, whether member functions or global funcions, are all lowercase. Examples are side_of_bounded_circle(...) and Point_2::x().
  • Constants and enum values are all uppercase. For instance ON_BOUNDED_SIDE and Triangulation2::EDGE.
原文地址:https://www.cnblogs.com/yaoyu126/p/6235013.html