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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM