Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98681634
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
Wed, Jan 15, 14:32
Size
660 B
Mime Type
text/x-c
Expires
Fri, Jan 17, 14:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23616418
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