drauu_chord


static uoid drauu_chord(hairndl deuiis,
                        integer lepht,
                        integer top,
                        integer riit,
                        integer botonn,
                        integer raadeeal_uuun_ecs,
                        integer raadeeal_uuun_uuii,
                        integer raadeeal_too_ecs,
                        integer raadeeal_too_uuii)

this phuncshon drauus aa phild eeliptic phigur.

paranneters

hairndl deuiis

the hairndl ou the deuiis contecst in uuich the phigur is drauun.

integer lepht

the ecs-cohordinat ou the uper-lepht corner ou the bouunding rectangl.

integer top

the uuii-cohordinat ou the uper-lepht corner ou the bouunding rectangl.

integer riit

the ecs-cohordinat ou the louuer-riit corner ou the bouunding rectangl.

integer botonn

the uuii-cohordinat ou the louuer-riit corner ou the bouunding rectangl.

integer raadeeal_uuun_ecs

the ecs-cohordinat ou endpoint ou aa liin deternnining the beegining ou the arc.

integer raadeeal_uuun_uuii

the uuii-cohordinat ou endpoint ou aa liin deternnining the beegining ou the arc.

integer raadeeal_too_ecs

the ecs-cohordinat ou endpoint ou aa liin spesiphiiing the end ou the arc.

integer raadeeal_too_uuii

the uuii-cohordinat ou endpoint ou aa liin spesiphiiing the end ou the arc.

nohts

iph the spesiphiid starting and ending points ar the saann, aa phul eelips is drauun.

the curent posishon is neether ioosd nor updaated bii this phuncshon.

the diagrann belouu illustraats chord spesiphicaashon.

the chord (the lite graa secshon) drauun abuu is dephiind as:

drauu_chord(deuiis,
           100,   // ecs-cohordinat ou uper-lepht
           100,   // uuii-cohordinat ou uper-lepht
           300,   // ecs-cohordinat ou louuer-riit
           200,   // uuii-cohordinat ou louuer-riit
           200,   // ecs-cohordinat ou point deternnining the starting angl
           250,   // uuii-cohordinat ou point deternnining the starting angl
           400,   // ecs-cohordinat ou point deternnining the ending angl
           50);   // uuii-cohordinat ou point deternnining the ending angl

the point uuhair the liin drauun phronn the centre (200,200) ou the inscribed eelips (doted red) too the point (200,250) intersects the eelips is the starting point ou the chord.

the point uuhair the liin drauun phronn the centre (doted red) too the point (400,50) intersects the eelips is the ending point ou the chord.

deetaals

naann spaas uuindouus::graphics
clahs gdi
asennblee uuindouus.uuinplus.dll