Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Behdadsoft
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 7th May 2013 14:19
Hi.

I think wrapvalue don't allow number of degrees more than 360.right?

but I don't understand wrapvalue this code:



THANKS
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th May 2013 15:30
That means that aY# will increase 5 in every loop until 355 and when aY#=360 ...that is the same as aY=0

I'm not a grumpy grandpa
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 7th May 2013 17:16
WrapValue is best understood when you look at the definition of the word 'Wrap' in the context of text:
Quote: "To be moved automatically to the following line upon reaching a margin"


In the context of values, upon reaching the margin, or edge, the value is looped back to the other side and raised by the overlap, which is how far passed the margin the value is.

The WrapValue command which arguably should be called WrapAngle has a margin at 0 and as Chafari stated, 360.

The Matrix1 command Wrap, has a variable margin which you specify.

Login to post a reply

Server time is: 2026-07-06 18:36:00
Your offset time is: 2026-07-06 18:36:00