Files
vroni/geom.cc
T
SaraP 739088af9f Vroni 7.8 :
- aggiornamento versione.
2025-01-29 16:24:30 +01:00

49 lines
2.6 KiB
C++

/*****************************************************************************/
/* */
/* Copyright (C) 2010-2025 M. Held, S. Huber */
/* */
/* This code is not in the public domain. All rights reserved! Please make */
/* sure to read the full copyright statement contained in "README.txt" or in */
/* the "main" file of this code, such as "main.cc". */
/* */
/*****************************************************************************/
/* */
/* Written by: Stefan Huber, Martin Held */
/* */
/* E-Mail: held@cs.sbg.ac.at */
/* Fax Mail: (+43 662) 8044-611 */
/* Voice Mail: (+43 662) 8044-6304 */
/* Snail Mail: Martin Held */
/* FB Informatik */
/* Universitaet Salzburg */
/* A-5020 Salzburg, Austria */
/* */
/*****************************************************************************/
/* */
/* get standard libraries */
/* */
#include <math.h>
#include <stdlib.h>
/* */
/* get my header files */
/* */
#include "fpkernel.h"
#include "vroni_object.h"
/* */
/* Compute point on circle with center c and radius r at angle phi */
/* */
coord vroniObject::CirclePnt(const coord & c, double_arg r, double_arg phi)
{
coord q;
q.x = c.x + r*cos(phi);
q.y = c.y + r*sin(phi);
return q;
}