Rotating

View: New views
5 Messages — Rating Filter:   Alert me  

Rotating

by Jakub Mikołaj Cichowicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
Thanks in advance for any answer
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.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Graph-support mailing list
Graph-support@...
https://lists.sourceforge.net/lists/listinfo/graph-support

Re: Rotating

by Matthew Low :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Matt



2009/6/9 Jakub Mikołaj Cichowicz <giorges@...>:

> 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.
> Thanks in advance for any answer
> 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.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Graph-support mailing list
> Graph-support@...
> https://lists.sourceforge.net/lists/listinfo/graph-support
>

------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Graph-support mailing list
Graph-support@...
https://lists.sourceforge.net/lists/listinfo/graph-support

Re: Rotating

by Jakub Mikołaj Cichowicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
> 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.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Graph-support mailing list
Graph-support@...
https://lists.sourceforge.net/lists/listinfo/graph-support

Re: Rotating

by Ivan Johansen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
also download it as pdf here: http://padowan.dk/bin/Graph-English.pdf

Best regards
Ivan Johansen

;This file was created by Graph (http://www.padowan.dk)
;Do not change this file from other programs.
[Graph]
Version = 4.3.0.384
MinVersion = 2.5
OS = Windows XP 5.1 Service Pack 3

[Axes]
xMin = -10
xMax = 10
xTickUnit = 2
xGridUnit = 2
yMin = -10
yMax = 10
yTickUnit = 2
yGridUnit = 2
AxesColor = clBlue
GridColor = 0x00FF9999
ShowLegend = 1
Radian = 1
LegendPlacement = 2

[Func1]
FuncType = 1
x = sin(t)
y = t^2
From = -10
To = 10
Steps = 1000
Color = clRed
Size = 2

[Func2]
FuncType = 1
x = RotateX(sin(t),t^2,pi/4)
y = RotateY(sin(t),t^2,pi/4)
From = -10
To = 10
Steps = 1000
Color = clRed
Size = 2

[Data]
TextLabelCount = 0
FuncCount = 2
PointSeriesCount = 0
ShadeCount = 0
RelationCount = 0
OleObjectCount = 0

[CustomFunctions]
RotateX(x,y,phi) = x*cos(phi)+y*sin(phi)
RotateY(x,y,phi) = -x*sin(phi)+y*cos(phi)


------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Graph-support mailing list
Graph-support@...
https://lists.sourceforge.net/lists/listinfo/graph-support

Re: Rotating

by Ivan Johansen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Graph-support mailing list
Graph-support@...
https://lists.sourceforge.net/lists/listinfo/graph-support