Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96792356
rotation.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 30, 21:47
Size
660 B
Mime Type
text/x-c
Expires
Wed, Jan 1, 21:47 (2 d)
Engine
blob
Format
Raw Data
Handle
23226472
Attached To
R1448 Lenstool-HPC
rotation.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: rotation */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
/* Global variables used :
* - none
* */
struct point rotation(struct point P, double theta)
{
struct point Q;
Q.x = P.x*cos(theta) + P.y*sin(theta);
Q.y = P.y*cos(theta) - P.x*sin(theta);
return(Q);
}
Event Timeline
Log In to Comment