News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Constant Length Line using SETATREF Functions

Started by JuneTheSecond, January 13, 2016, 03:45:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JuneTheSecond

I found SETATREF function can create Constant Length Line in a same manner as Angled Line.
The formulas are almost similar as Angle Line.

EndX = SETATREF(User.DeltaX,SETATREFEVAL(PNTX((SETATREFEXPR()))-BeginX))*0+BeginX+Prop.Length*User.cos
EndY = SETATREF(User.DeltaY,SETATREFEVAL(PNTY(SETATREFEXPR())-BeginY))*0+BeginY+Prop.Length*User.sin

But the behavior of the shapes are somewhat different from old constant line using SETF functions.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 131 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1072KB.
Tokens: post-login.
Cache hits: 12: 0.00137s for 26,766 bytes (show)
Cache misses: 1: (show)
Queries used: 15.

[Show Queries]