English
Native functions

lineOfNumPoints

 

nProc lineOfNumPoints(long x,y,xx,yy,cnt){

    long data

    if cnt>2 {

        float 	fcnt=float(cnt-1),\
        sx=float(xx-x)/fcnt,\
        sy=float(yy-y)/fcnt,\
        px=float(x),\
        py=float(y)
        data=dim(8+cnt*8)
        long data&,0=cnt,0,x,y
        sub cnt,2
        long offs=16

        whileLoop cnt {

            px=px+sx
            py=py+sy
            long data&,offs=long(px),long(py)
            add offs,8

        }

        long data&,offs=xx,yy
        return data

    } else if cnt<1 {

        data=dim(8)
        long data&,0=0
        return data

    } else if cnt==1 {

        data=dim(16)
        long data&,0=1,0,long(float(xx-x)*0.5),long(float(yy-y)*0.5)
        return data

    }

    data=dim(24)
    long data&,0=1,0,x,y,xx,yy
    return data

}

 
08/28/11  
 




Nico
Madysa
supply a area back, the The Coordinates each cnt-ten Punktes the line between (x,y) and (xx,yy) contains (gepunktete line). The area is How follows strukturiert:

Long on Offset 0: Number of drew spots.
Long on Offset 4: not definiert.
Longs on Offset 8/12: X-/Y-Koordinate the first Punktes,
etc.
The area is i. A. larger as absolutely necessary.
 
10/07/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.597 Views

Untitledvor 0 min.
p.specht04/23/16
funkheld04/11/16
Michael W.11/02/14
Ernst05/26/14
More...

Themeninformationen

this Topic has 2 subscriber:

Nico Madysa (1x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie