calculate position


Author
Message
nakayama
nakayama
Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)Guru (5.1K reputation)
Group: Forum Members
Posts: 72, Visits: 408
Hi Dave,
i wish to use pixel to calculate the position and I am aware anything in expressions has no unit so I add*1px,
But the stimulus still did not show, How could i fix this (the screen resolution is 1960*1200, and "960", "1000", "65" are all in pixel)
thank you;)
Attachments
text4.iqx (211 views, 585 bytes)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
nakayama - 11/4/2019
Hi Dave,
i wish to use pixel to calculate the position and I am aware anything in expressions has no unit so I add*1px,
But the stimulus still did not show, How could i fix this (the screen resolution is 1960*1200, and "960", "1000", "65" are all in pixel)
thank you;)

The first term in the calculation determines the unit, so it needs to be:

<expressions>
/circle_a= 1px*(values.circle_r/sin(1.5708))
/ circle_b=1px*((values.circle_r+values.circle_r*sin(1.5708))/tan(0.174533))
/ circle_x1=1px*(960-expressions.circle_a)
/circle_y1=1px*(1000-expressions.circle_b)
</expressions>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search