File: main.cpp

package info (click to toggle)
sfcgal 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,348 kB
  • sloc: cpp: 44,959; sh: 198; makefile: 33; ansic: 24; python: 23
file content (21 lines) | stat: -rw-r--r-- 557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2012-2013, IGN France.
// Copyright (c) 2012-2024, Oslandia.
// Copyright (c) 2024-2025, SFCGAL team.
// SPDX-License-Identifier: LGPL-2.0-or-later

#include <CGAL/Cartesian.h>
#include <CGAL/squared_distance_2.h>

// declaration Kernel simple
typedef CGAL::Cartesian<double> K;
typedef K::Point_2              Point_2;

int
main()
{
  Point_2                       a(0.0, 0.0);
  Point_2                       b(3.0, 4.0);
  K::Compute_squared_distance_2 squared_distance;
  std::cout << squared_distance(a, b) << std::endl;
  return 0;
}