Visio Guy

Visio Guy Website & General Stuff => User-submitted Stuff => Topic started by: JuneTheSecond on January 13, 2016, 03:45:36 AM

Title: Constant Length Line using SETATREF Functions
Post by: JuneTheSecond on January 13, 2016, 03:45:36 AM
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.
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 41 (show)
Files included: 25 - 925KB. (show)
Memory used: 771KB.
Tokens: post-login.
Cache hits: 7: 0.00135s for 22,302 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]