Displaying 2 results from an estimated 2 matches for "diffx".
Did you mean:
diff
2008 Aug 09
1
Converting nested "for" loops to an "apply" function(s)
...istances*sin(bearings*pi/180) #in sin and cos the argument MUST be in radians
ypos=distances*cos(bearings*pi/180)
numpoints=length(distances)
nnd=rep(sqrt(2*400*400),times=numpoints) #start with the maximum possible distance
for (i in 1:numpoints) {
for (j in 1:numpoints) {
if (i!=j) {
diffx=abs(xpos[i]-xpos[j])
diffy=abs(ypos[i]-ypos[j])
nd=sqrt((diffx^2)+(diffy^2))
if (nd
2008 May 29
4
Drag/Drop finding droppable's properties?
Hi All,
I am trying to develop a dynamic form creator application, whereby we
can drag objects from a "palette" and drop them onto a "form" to build
the design of our form.
To achieve this, when I have dragged the object, and dropped it onto
the "form" area, I want to get the position of where the object was
dropped.
I have a droppable area: