9 Jun 2009 20:54

## Rotating

```Hey,
I have 2 questions:

1. I have inserted an elipse using a parametric function f = f(x(t), y(t)) and I
would like to rotate  by some angle (let`s say "phi").
I know I can do it like that f. = f.(x.(t), y.(t)) where x.(t) =
x(t)*cos(phi)+y(t)*sin(phi), y.(t) = x(t)*(-sin(phi))+y(t)*cos(phi) but I`m in a
situation where I have to rotate many elipses and the angle values are very very
exact (many digits)

2. I noticed there is a option of making user-defined functions, does it also
apply to such cases as in point 1.?

I`d love to browse the program help (F1) but I use windows vista and the help
won`t open for me.
Jakub

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
```
11 Jun 2009 00:53

### Re: Rotating

```Jakub Mikołaj Cichowicz wrote:
> 1. I have inserted an elipse using a parametric function f = f(x(t), y(t)) and I
> would like to rotate  by some angle (let`s say "phi").
> I know I can do it like that f. = f.(x.(t), y.(t)) where x.(t) =
> x(t)*cos(phi)+y(t)*sin(phi), y.(t) = x(t)*(-sin(phi))+y(t)*cos(phi) but I`m in a
> situation where I have to rotate many elipses and the angle values are very very
> exact (many digits)

Currently there is no easy way to do this. However it should be possible
when I get Graph 4.4 finished.

> 2. I noticed there is a option of making user-defined functions, does it also
> apply to such cases as in point 1.?

Yes, but I don't know how much easier it is. You can create two custom
functions:
RotateX(x,y,phi)=x*cos(phi)+y*sin(phi)
RotateY(x,y,phi)=-x*sin(phi)+y*cos(phi)

Now you can use them to rotate any function.
If you have the function x(t)=sin(t), y(t)=t^2 you can rotate it pi/4 by
creating a new function:
x(t)=RotateX(sin(t), t^2, pi/4), y(t)=RotateY(sin(t), t^2, pi/4)

I have attached a file that shows this.

> I`d love to browse the program help (F1) but I use windows vista and the help
> won`t open for me.

The beta version has a help file that works under Windows Vista. You can
```

10 Jun 2009 00:55

### Re: Rotating

```Is there a question you wanted to ask in point 1?

Matt

2009/6/9 Jakub Mikołaj Cichowicz <giorges <at> wp.pl>:
> Hey,
> I have 2 questions:
>
> 1. I have inserted an elipse using a parametric function f = f(x(t), y(t)) and I
> would like to rotate  by some angle (let`s say "phi").
> I know I can do it like that f. = f.(x.(t), y.(t)) where x.(t) =
> x(t)*cos(phi)+y(t)*sin(phi), y.(t) = x(t)*(-sin(phi))+y(t)*cos(phi) but I`m in a
> situation where I have to rotate many elipses and the angle values are very very
> exact (many digits)
>
> 2. I noticed there is a option of making user-defined functions, does it also
> apply to such cases as in point 1.?
>
> I`d love to browse the program help (F1) but I use windows vista and the help
> won`t open for me.
> Jakub
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
```

10 Jun 2009 11:13

### Re: Rotating

```
> Is there a question you wanted to ask in point 1?
>
> Matt
>

Yes, is there any option/function that can do this automatic for me? Because I
have
hundreds of elipses and doing it manually means spending loads of time and also
gives the risk that I make a typing mistake of any sort. So I thought that
maybe there is a simple option that could save me the trouble :).

And I just thought of another question, is there any way to inverse the axis so
that the X axis is vertical growing north, and Y axis is horizontal growing
east? I would like only the axis to change but y=f(x) to remain, not to change
to x=f(y)

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
```
11 Jun 2009 01:02

### Re: Rotating

```Jakub Mikołaj Cichowicz wrote:
> And I just thought of another question, is there any way to inverse the axis so
> that the X axis is vertical growing north, and Y axis is horizontal growing
> east? I would like only the axis to change but y=f(x) to remain, not to change
> to x=f(y)

I am a little unsure what it is you are asking? You can change the label
shown for the axes in the Edit|Axes dialog.

Best regards
Ivan Johansen

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
_______________________________________________
Graph-support mailing list
Graph-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/graph-support
```

Gmane