Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > General > Chit Chat
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.


Trignomic Cycle formula


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-16-2008, 01:49 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default Trignomic Cycle formula

Inspired by the lattest Token's creation, I've been searching for a way to create an ANALOGIC clock...so started with some research...
and found a reference to a "Trignomic cycle"...
But since I never was that good at trignomics, I just can't see how to port it....
So was looing for some help...
What I need is a "simple" way to draw a radius line from center to the edge of the circle by providing only the angle....
Any one up to it?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #2 (permalink)  
Old 08-16-2008, 03:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

There is one in the examples (Clock.sbp)
You can find it under: C:\Program Files\Anywhere Software\Basic4ppc Desktop\Samples
Reply With Quote
  #3 (permalink)  
Old 08-16-2008, 03:20 PM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 67
Default Clock?

Hi,
first: Erel was faster.

Try this
Code:
Sub Globals
	i = 0
	a = 0
End Sub

Sub App_Start
	Form1.Show
	Form1.ForeLayer = true
	Form1.Circle (120,120,100,cYellow)
	Timer1.Enabled = true
End Sub

Sub Timer1_Tick
	Form1.FErase(40,40,200,200)
	a = i / 180 * cPI
	Form1.FLine(120,120,120 + 80 * Sin(a),120 - 80 * Cos(a),cRed)
	i = i + 6
End Sub
May be this simple code can help you.
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, XP SP3
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: Clip-on Bluetooth, Navman 3000
Reply With Quote
  #4 (permalink)  
Old 08-16-2008, 05:13 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

@EREL
Thanks Erel, I keep forgetting about the examples....
Any way I found a few formulas, that I'm gonna try...

Thanks for The help....
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid Parenthensis in Formula MM2forever Questions & Help Needed 6 05-31-2008 05:42 PM


All times are GMT. The time now is 03:31 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0