CGAL 6.2 - dD Geometry Kernel: Kernel_d::Component_accessor_d Concept Reference

CGAL 6.2 - dD Geometry Kernel

Loading...
Searching...
No Matches
List of all members
Kernel_d::Component_accessor_d Concept Reference
Reference Manual » Kernel Concept

## Definition

## Operations
A model of this concept must provide:
int | dimension (const Kernel_d::Point_d &p)
| returns the dimension of \( p\).
Kernel_d::RT | homogeneous (const Kernel_d::Point_d &p, int i)
| returns the i-th homogeneous coordinate of \( p\).
Kernel_d::FT | cartesian (const Kernel_d::Point_d &p, int i)
| returns the i-th Cartesian coordinate of \( p\).

## Member Function Documentation

## ◆ cartesian()

Kernel_d::FT Kernel_d::Component_accessor_d::cartesian | ( | const Kernel_d::Point_d & | p,
|  | int | i
| ) |  |

returns the i-th Cartesian coordinate of \( p\).

Precondition
  `0 <= i < dimension(p)`.

## ◆ homogeneous()

Kernel_d::RT Kernel_d::Component_accessor_d::homogeneous | ( | const Kernel_d::Point_d & | p,
|  | int | i
| ) |  |

returns the i-th homogeneous coordinate of \( p\).

Precondition
  `0 <= i <= dimension(p)`.