Anda di halaman 1dari 17

IKAW NA BAHALA UMINTINDI. :)) Yung unang part ng convo nagsesend ako ng print sc reen sknya.

Chambahan mo nalang kung ano pinaguusapan namin na question dyan. Ha ha. Eto pa yung iba With positive angle, the rotation in transformation process is clockwise. -false ________ is whole process of generating a 2D image from a 3D scene. -rendering ________ lies on the grid point. -pixel ________ is the computation which objects are within the chosen view. (Hint: Ans wer starts with letter C.) -clipping

jrt_0011 (2:35:03 PM): ano tanong yusenkaisha_blue (2:35:09 PM): send ko sayo picture jrt_0011 (2:35:40 PM): asan na :)) jrt_0011 (2:37:24 PM): hnd ko makita XD jrt_0011 (2:38:04 PM): 100 jrt_0011 (2:38:09 PM): ung value nc x jrt_0011 (2:38:12 PM): cx diba? jrt_0011 (2:38:14 PM): hnd cy? yusenkaisha_blue (2:38:27 PM): As given above, in Line4, determine the value of c1x (x-component). //control point (c1x, c1y) yusenkaisha_blue (2:38:33 PM): c1x yusenkaisha_blue (2:38:34 PM): haha jrt_0011 (2:38:34 PM): 100 po yusenkaisha_blue (2:38:38 PM): thanks :D jrt_0011 (2:38:46 PM): ^^ yusenkaisha_blue (2:39:58 PM): eto pa haha hndi ko alam yung teeth something e jrt_0011 (2:40:09 PM): sa gear? yusenkaisha_blue (2:40:12 PM): oo yusenkaisha_blue (2:40:20 PM): iniba pala ni sir tanong. haha jrt_0011 (2:41:14 PM): draw(gear); jrt_0011 (2:41:16 PM): ata jrt_0011 (2:41:19 PM): hahaha yusenkaisha_blue (2:42:34 PM): eto number 3. okay lang ba? haha sorry yusenkaisha_blue (2:42:44 PM): gear ulit yung drawing. eto tanong yusenkaisha_blue (2:42:46 PM): Given: Gear Gear center point (cx, cy) = (300, 300) Line32 //Assume gear = gear outer teeth (which is assumed to be constructed a lready) Line33 //To construct the gear inner teeth based from gear outer teeth Line34 Shape c2; Line35 af.setToTranslation(-cx, -cy); // af is an AffineTransform object Line36 c2 = af.createTransformedShape( ___ ); Line37 af.setToScale(sx, sy); Line38 c2 = af.createTransformedShape( ___ ); Line39 af.setToTranslation(cx, cy); Line40 c2 = af.createTransformedShape( ___ ); Line41 Area gearIn = new Area( ___ ); As given above, what is the set operation to execute to construct the gear compl etely with its inside teeth? Give the method of Area Class. In your answer, give only the name of the method and write your answer jrt_0011 (2:43:30 PM): draw(c2); yusenkaisha_blue (2:46:12 PM): may bago akong sinend. tama sagot ko dba? yellowl

ight1? jrt_0011 (2:46:41 PM): uu yusenkaisha_blue (2:47:03 PM): Scaling transformation is with (1, sy, sx, 1, 0, 0) parameter arrangement. yusenkaisha_blue (2:47:04 PM): :D yusenkaisha_blue (2:47:12 PM): false? jrt_0011 (2:47:20 PM): hnd ko alm yn XD jrt_0011 (2:47:30 PM): bka nga false hehehe yusenkaisha_blue (2:48:46 PM): may bago ulit akong upload :D jrt_0011 (2:49:07 PM): 45 yusenkaisha_blue (2:49:50 PM): With respect to a reference point other than the origin, there is no need to translate when carrying out rotation. TRUE? jrt_0011 (2:50:19 PM): false jrt_0011 (2:50:38 PM): ay jrt_0011 (2:50:40 PM): true pla : jrt_0011 (2:50:42 PM): D jrt_0011 (2:50:42 PM): :D yusenkaisha_blue (2:50:51 PM): hahahahahah nanext ko na :)) ok lang :)))) jrt_0011 (2:50:56 PM): sorry yusenkaisha_blue (2:52:57 PM): may bago ulit :D yusenkaisha_blue (2:53:21 PM): 500? jrt_0011 (2:54:00 PM): dx diba? jrt_0011 (2:54:04 PM): 400 yusenkaisha_blue (2:54:06 PM): oo dx1 jrt_0011 (2:54:17 PM): 500-100 =400 jrt_0011 (2:54:19 PM): so 400 yusenkaisha_blue (2:54:44 PM): yung 100 galing sa B? jrt_0011 (2:54:50 PM): uu yusenkaisha_blue (2:54:56 PM): ahh thanks :D jrt_0011 (2:55:07 PM): w8 w8 jrt_0011 (2:55:19 PM): wag mo muna next jrt_0011 (2:55:36 PM): nanext mo na? yusenkaisha_blue (2:55:49 PM): oo e hahaha bakit? pano sinosolve yun? jrt_0011 (2:56:00 PM): T_T sige next ques hahaha yusenkaisha_blue (2:56:04 PM): sorry hahahahaha jrt_0011 (2:56:09 PM): iminus mo lng hehe yusenkaisha_blue (2:56:27 PM): okay hahah may upload ulit ako jrt_0011 (2:57:24 PM): 240-80 jrt_0011 (2:57:32 PM): ilan? yusenkaisha_blue (2:57:42 PM): 160? yusenkaisha_blue (2:57:43 PM): haha jrt_0011 (2:57:46 PM): 160 sagot yusenkaisha_blue (2:58:10 PM): san galing yung 80? jrt_0011 (2:58:22 PM): ka=80 yusenkaisha_blue (2:58:31 PM): ah sa a jrt_0011 (2:58:35 PM): distance ng k at a ay 80 jrt_0011 (2:58:55 PM): so kung y ng a mo ay 240 iminus mo ng 80 para makuha ung y ng k yusenkaisha_blue (3:00:17 PM): eto next question yusenkaisha_blue (3:00:25 PM): yung drawing nya yung parang race track yusenkaisha_blue (3:00:30 PM): yung rect yusenkaisha_blue (3:00:32 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H.

Program Code: Line11 af.setToTranslation(dx3, dy3); //af is an AffineTransform object Line12 rect4 = af.createTransformedShape(rect3); //rect3 is at C Line13 double theta2 = angleDeg2*Math.PI/180; Line14 af.setToRotation(-theta2, Dx, Dy); //assume counterclockwise rotati on Line15 rect5 = af.createTransformedShape(rect4); //r jrt_0011 (3:00:53 PM): putol yusenkaisha_blue (3:00:57 PM): Line16 af.setToTranslation(dx4, dy4); Line17 rect5 = af.createTransformedShape(rect5); //rect5 is at E As given above, in Line11, determine the value of dy3 (y-component difference). yusenkaisha_blue (3:01:13 PM): naisip ko 500-500? :)) jrt_0011 (3:01:26 PM): 100 jrt_0011 (3:01:28 PM): ang dy jrt_0011 (3:02:02 PM): hmm jrt_0011 (3:02:08 PM): -100 ata o 100 jrt_0011 (3:02:40 PM): XD yusenkaisha_blue (3:02:40 PM): possible ba na magnega? yusenkaisha_blue (3:02:42 PM): hahaha jrt_0011 (3:02:43 PM): anguguluhan ako jrt_0011 (3:02:47 PM): hmm jrt_0011 (3:02:54 PM): posible ata jrt_0011 (3:03:19 PM): -100 jrt_0011 (3:03:22 PM): ayan na XD yusenkaisha_blue (3:03:45 PM): haha yusenkaisha_blue (3:03:48 PM): eto next ques yusenkaisha_blue (3:03:50 PM): Given: Length between two points AB = 80, BC = 80, CD = 240, DE = 80, EF = 80, HI = 220, JK = 120, KA = 80 Points (x, y) A =(100, 240), G = (645, 160), H = (520, 80) Program Code: Line1 GeneralPath gp = new GeneralPath(); Line2 gp.moveTo(Ax, Ay); Line3 gp.lineTo(Bx,By); Line4 gp.quadTo(C1x,C1y,Cx,Cy); //C1 is control point Line5 gp.lineTo(Dx,Dy); Line6 gp.quadTo(C2x, C2y,Ex, Ey); //C2 is control point Line7 gp.lineTo(Fx,Fy); Line8 gp.lineTo(Gx,Gy); Line9 gp.quadTo(C3x,C3y,Hx,Hy); //C3 is control point Line10 gp.lineTo(Ix,Iy); Line11 gp.lineTo(Jx,Jy); Line12 gp.lineTo(Kx, Ky); Line13 gp.closePath(); As given above, in Line6, determine the value of Ex (Point E x-component). yusenkaisha_blue (3:03:58 PM): yung drawing neto yung car jrt_0011 (3:04:28 PM): 80+80+240+80 jrt_0011 (3:04:30 PM): ilan? yusenkaisha_blue (3:04:45 PM): 480? jrt_0011 (3:04:54 PM): okie yn:)) jrt_0011 (3:05:20 PM): hmm jrt_0011 (3:05:22 PM): w8w8 jrt_0011 (3:05:24 PM): wah jrt_0011 (3:05:30 PM): nanext mo na uli? yusenkaisha_blue (3:05:36 PM): oo hahahahahahhahahahahahah yusenkaisha_blue (3:05:37 PM): =)) yusenkaisha_blue (3:05:45 PM): ok lang rap wag ka magpanic :))

jrt_0011 (3:05:46 PM): sige okie lng :)) jrt_0011 (3:05:55 PM): sorry na XD jrt_0011 (3:06:23 PM): next XD yusenkaisha_blue (3:07:21 PM): eto stop light yung given yusenkaisha_blue (3:07:31 PM): Given: Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light2 (TL2) for Road2, TL2 is to be constructed from TL1 (rectRed1, rectYellow1, rectGreen1, redLight1, yellowLight1, greenLight1, timer1 , top1) Line14 Shape rectRed2, rectYellow2, rectGreen2; Line15 Shape redLight2, yellowLight2, greenLight2, timer2, top2; Line16 af.setToTranslation(dx1,dy1); //af is an AffineTransf orm object Line17 rectRed2 = af.createTransformedShape( ____ ); Line18 rectYellow2 = af.createTransformedShape( ____ ); Line19 rectGreen2 = af.createTransformedShape( ____ ); yusenkaisha_blue (3:07:38 PM): Line20 redLight2 = af.createTransformedShape( ____ ); Line21 yellowLight2 = af.createTransformedShape( ____ ); Line22 greenLight2 = af.createTransformedShape( ____ ); Line23 timer2 = af.createTransformedShape( ____ ); Line24 top2 = af.createTransformedShape( ____ ); As given above, in Line22, what is the parameter given? Give the object variable . jrt_0011 (3:08:10 PM): greenLight1 yusenkaisha_blue (3:08:52 PM): bakit greenlight1? jrt_0011 (3:09:01 PM): kasi jrt_0011 (3:09:21 PM): parang illipat mo lng ung object sa kabila jrt_0011 (3:09:27 PM): ittranslate mo lng siya yusenkaisha_blue (3:09:39 PM): ahh yusenkaisha_blue (3:11:53 PM): stop light ulit yusenkaisha_blue (3:11:55 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); Line yusenkaisha_blue (3:12:03 PM): Line7 AffineTransform af = new AffineTransform (); Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ );

As given above, in Line8, determine the value of dy (y-component difference). yusenkaisha_blue (3:15:19 PM): 100? jrt_0011 (3:15:35 PM): 200? jrt_0011 (3:16:34 PM): 100 nga hahaha yusenkaisha_blue (3:16:43 PM): hahahaha jrt_0011 (3:16:44 PM): sorry yusenkaisha_blue (3:16:48 PM): ok lanhg :)) yusenkaisha_blue (3:16:52 PM): eto yung car yusenkaisha_blue (3:16:54 PM): Given: Length between two points AB = 80, BC = 80, CD = 240, DE = 80, EF = 80, HI = 220, JK = 120, KA = 80 Points (x, y) A =(100, 240), G = (645, 160), H = (520, 80) Program Code: Line1 GeneralPath gp = new GeneralPath(); Line2 gp.moveTo(Ax, Ay); Line3 gp.lineTo(Bx,By); Line4 gp.quadTo(C1x,C1y,Cx,Cy); //C1 is control point Line5 gp.lineTo(Dx,Dy); Line6 gp.quadTo(C2x, C2y,Ex, Ey); //C2 is control point Line7 gp.lineTo(Fx,Fy); Line8 gp.lineTo(Gx,Gy); Line9 gp.quadTo(C3x,C3y,Hx,Hy); //C3 is control point Line10 gp.lineTo(Ix,Iy); Line11 gp.lineTo(Jx,Jy); Line12 gp.lineTo(Kx, Ky); Line13 gp.closePath(); As given above, in Line5, determine the value of Dx (Point D x-component). yusenkaisha_blue (3:17:06 PM): 80+80+240? jrt_0011 (3:17:40 PM): 100+80+80+240 jrt_0011 (3:17:48 PM): mali ako knaina sorry yusenkaisha_blue (3:18:17 PM): 400 :D jrt_0011 (3:18:33 PM): 500? yusenkaisha_blue (3:18:44 PM): bakit? haha jrt_0011 (3:18:50 PM): 500 lyka jrt_0011 (3:18:51 PM): haha jrt_0011 (3:19:00 PM): 100+80+80+240 yusenkaisha_blue (3:19:02 PM): sige haha necxt ko na yusenkaisha_blue (3:19:17 PM): onga no haha sorry mali plus :)) jrt_0011 (3:19:32 PM): XD yusenkaisha_blue (3:19:42 PM): eto yung race track yusenkaisha_blue (3:19:48 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line11 af.setToTranslation(dx3, dy3); //af is an AffineTransform object Line12 rect4 = af.createTransformedShape(rect3); //rect3 is at C Line13 double theta2 = angleDeg2*Math.PI/180; Line14 af.setToRotation(-theta2, Dx, Dy); //assume counterclockwise rotati on Line15 rect5 = af.createTransformedShape(rect4); yusenkaisha_blue (3:19:55 PM): Line16 af.setToTranslation(dx4, dy4);

Line17 rect5 = af.createTransformedShape(rect5);

//rect5 is at E

As given above, in Line13, determine the value of angleDeg2 (value of theta2 in degrees). Assume the rotation is counterclockwise. For your answer, round off th e angle in degrees to the nearest integer. jrt_0011 (3:20:19 PM): hnd ko alm yan hahahah yusenkaisha_blue (3:20:35 PM): hahahaa jrt_0011 (3:20:36 PM): 30+ daw yan sabi ni garner dati yusenkaisha_blue (3:20:37 PM): sige2 :D jrt_0011 (3:20:46 PM): try mo nlng 34 jrt_0011 (3:20:47 PM): hahahah yusenkaisha_blue (3:21:34 PM): eto yung stop light :D yusenkaisha_blue (3:21:42 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); yusenkaisha_blue (3:21:48 PM): Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line3, determine the value of ty (y-component). jrt_0011 (3:22:32 PM): 150 ata jrt_0011 (3:23:01 PM): :D yusenkaisha_blue (3:23:13 PM): haha okay yusenkaisha_blue (3:23:34 PM): ________ is the computation which objects are wit hin the chosen view. (Hint: Answer starts with letter C.) yusenkaisha_blue (3:23:38 PM): alam nyo yan? haha jrt_0011 (3:23:43 PM): hnd eh jrt_0011 (3:23:51 PM): try mo sa net maghanap hahaha yusenkaisha_blue (3:29:21 PM): rap andyan ka pa? yusenkaisha_blue (3:29:24 PM): haha jrt_0011 (3:29:49 PM): ano un jrt_0011 (3:29:50 PM): hahaha yusenkaisha_blue (3:29:51 PM): race track ulit :D yusenkaisha_blue (3:29:54 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line1 Rectangle2D.Double rect1 = new Rectangle2D.Double(x1, y1, w, h); //rect 1 is at A Line2 Shape rect2, rect3, rect4, rect5, rect6, rect7, rect8;

Line3 AffineTransform af = new AffineTransform(); Line4 af.setToTranslation(dx1, dy1); Line5 rect2 = af.createTransformedShape(rect1); Line6 double theta1 = angleDeg yusenkaisha_blue (3:30:02 PM): Line6 double theta1 = angleDeg1*Math.PI/180; Line7 af.setToRotation(theta1, Bx, By); //assume clockwise rotation Line8 rect3 = af.createTransformedShape(rect2); //rect2 is at B Line9 af.setToTranslation(dx2, dy2); Line10 rect3 = af.createTransformedShape(rect3); //rect3 is at C As given above, in Line9, determine the value of dy2 (y-component difference). jrt_0011 (3:30:24 PM): 400? jrt_0011 (3:30:28 PM): ay jrt_0011 (3:30:33 PM): -100 yusenkaisha_blue (3:30:42 PM): haha sige inenext ko na :)) jrt_0011 (3:30:43 PM): hahhaa jrt_0011 (3:30:52 PM): -100 jrt_0011 (3:30:54 PM): >:) yusenkaisha_blue (3:31:23 PM): stop light yusenkaisha_blue (3:31:25 PM): Line6 double theta1 = angleDeg1*Math.PI/180; Line7 af.setToRotation(theta1, Bx, By); //assume clockwise rotation Line8 rect3 = af.createTransformedShape(rect2); //rect2 is at B Line9 af.setToTranslation(dx2, dy2); Line10 rect3 = af.createTransformedShape(rect3); //rect3 is at C As given above, in Line9, determine the value of dy2 (y-component difference). yusenkaisha_blue (3:31:35 PM): mali :)) yusenkaisha_blue (3:31:37 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); Line yusenkaisha_blue (3:31:45 PM): Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line12, what is the parameter given? Give the object variable . yusenkaisha_blue (3:31:49 PM): greenlight2? jrt_0011 (3:32:05 PM): redLight1 yusenkaisha_blue (3:32:24 PM): okay next ko na ulit yusenkaisha_blue (3:32:25 PM): :)) jrt_0011 (3:32:29 PM): opo jrt_0011 (3:32:29 PM): :D yusenkaisha_blue (3:32:52 PM): bilis ng timer ng eleap. 1hr na ko. question no 2 1 palang ako yusenkaisha_blue (3:33:08 PM): race track ulit

yusenkaisha_blue (3:33:14 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line18 af.setToTranslation(dx5, dy5); //af is an AffineTransform object Line19 rect6 = af.createTransformedShape(rect5); //rect5 is at E Line20 double theta3 = angleDeg3*Math.PI/180; Line21 af.setToRotation(theta3, Fx, Fy); //assume clockwise rotation Line22 rect7 = af.createTransformedShape(rect6); //rect6 is jrt_0011 (3:33:14 PM): lagot yusenkaisha_blue (3:33:23 PM): Line22 rect7 = af.createTransformedShape(rect6); //rect6 is at F Line23 af.setToTranslation(dx6, dy6); Line24 rect7 = af.createTransformedShape(rect7); //rect7 is at G As given above, in Line18, determine the value of dx5 (x-component difference). jrt_0011 (3:34:30 PM): -200 jrt_0011 (3:34:33 PM): or 200 jrt_0011 (3:34:48 PM): -200 nlng >:) yusenkaisha_blue (3:34:54 PM): -200 isasagiot ko jrt_0011 (3:34:59 PM): opo yusenkaisha_blue (3:36:32 PM): redering ba to? ________ lies on the grid point. yusenkaisha_blue (3:36:40 PM): *rendering jrt_0011 (3:36:56 PM): wla ako alm dyn hahaha jrt_0011 (3:36:58 PM): hula lng me jrt_0011 (3:37:03 PM): try mo rendering yusenkaisha_blue (3:38:38 PM): eto yung gear hehe yusenkaisha_blue (3:38:46 PM): Given: Gear Line1 Ellipse2D.Double elli1 = new Ellipse2D.Double(x, y, w, h); Line2 //1st gear tooth Line3 Rectangle2D.Double tooth1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 AffineTransform af = new AffineTransform(); Line5 Shape tooth2, tooth3, tooth4, tooth5, tooth6, tooth7, tooth8; Line6 double theta = angleDeg*Math.PI/180; //angle of rotation Line7 af.setToRotation(theta, cx, cy); //point of rotation (cx, cy ) Line8 tooth2 = af.createTransformedShape( ___ ); //2nd gear tooth Line9 tooth3 = af.createTransformedShape( ___ ); //3rd gear tooth Line10 tooth4 = af.createTransformedShape( ___ ); //4th gear tooth Line11 tooth5 = af.createTransformedShape( ___ ); //5th gear tooth yusenkaisha_blue (3:38:52 PM): Line12 tooth6 = af.createTransformedShape( ___ ) ; //6th gear tooth Line13 tooth7 = af.createTransformedShape( ___ ); //7th gear tooth Line14 tooth8 = af.createTransformedShape( ___ ); //8th gear tooth As given above, in Line12, what is the parameter given? Give the object variable . jrt_0011 (3:38:59 PM): tooth5 yusenkaisha_blue (3:39:14 PM): next ko na jrt_0011 (3:39:19 PM): opo yusenkaisha_blue (3:39:41 PM): gear ulit yusenkaisha_blue (3:39:46 PM): Given: Gear Line1 Ellipse2D.Double elli1 = new Ellipse2D.Double(x, y, w, h); Line2 //1st gear tooth

Line3 Rectangle2D.Double tooth1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 AffineTransform af = new AffineTransform(); Line5 Shape tooth2, tooth3, tooth4, tooth5, tooth6, tooth7, tooth8; Line6 double theta = angleDeg*Math.PI/180; //angle of rotation Line7 af.setToRotation(theta, cx, cy); //point of rotation (cx, cy ) Line8 tooth2 = af.createTransformedShape( ___ ); //2nd gear tooth Line9 tooth3 = af.createTransformedShape( ___ ); //3rd gear tooth Line10 tooth4 = af.createTransformedShape( ___ ); //4th gear tooth Line11 tooth5 = af.createTransformedShape( ___ ); //5th gear tooth yusenkaisha_blue (3:39:52 PM): Line13 tooth7 = af.createTransformedShape( ___ ) ; //7th gear tooth Line14 tooth8 = af.createTransformedShape( ___ ); //8th gear tooth As given above, in Line8, what is the parameter given? Give the object variable. jrt_0011 (3:40:13 PM): tooth1 yusenkaisha_blue (3:41:02 PM): yung car yusenkaisha_blue (3:41:05 PM): Given: Length between two points AB = 80, BC = 80, CD = 240, DE = 80, EF = 80, HI = 220, JK = 120, KA = 80 Points (x, y) A =(100, 240), G = (645, 160), H = (520, 80) Program Code: Line1 GeneralPath gp = new GeneralPath(); Line2 gp.moveTo(Ax, Ay); Line3 gp.lineTo(Bx,By); Line4 gp.quadTo(C1x,C1y,Cx,Cy); //C1 is control point Line5 gp.lineTo(Dx,Dy); Line6 gp.quadTo(C2x, C2y,Ex, Ey); //C2 is control point Line7 gp.lineTo(Fx,Fy); Line8 gp.lineTo(Gx,Gy); Line9 gp.quadTo(C3x,C3y,Hx,Hy); //C3 is control point Line10 gp.lineTo(Ix,Iy); Line11 gp.lineTo(Jx,Jy); Line12 gp.lineTo(Kx, Ky); Line13 gp.closePath(); As given above, in Line9, determine the value of C3y (Point C3 y-component). jrt_0011 (3:42:12 PM): 120 yusenkaisha_blue (3:43:19 PM): gear ulit yusenkaisha_blue (3:43:24 PM): Given: Gear Line1 Ellipse2D.Double elli1 = new Ellipse2D.Double(x, y, w, h); Line2 //1st gear tooth Line3 Rectangle2D.Double tooth1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 AffineTransform af = new AffineTransform(); Line5 Shape tooth2, tooth3, tooth4, tooth5, tooth6, tooth7, tooth8; Line6 double theta = angleDeg*Math.PI/180; //angle of rotation Line7 af.setToRotation(theta, cx, cy); //point of rotation (cx, cy ) Line8 tooth2 = af.createTransformedShape( ___ ); //2nd gear tooth Line9 tooth3 = af.createTransformedShape( ___ ); //3rd gear tooth Line10 tooth4 = af.createTransformedShape( ___ ); //4th gear tooth Line11 tooth5 = af.createTransformedShape( ___ ); //5th gear tooth yusenkaisha_blue (3:43:35 PM): Line12 tooth6 = af.createTransformedShape( ___ ) ; //6th gear tooth Line13 tooth7 = af.createTransformedShape( ___ ); //7th gear tooth Line14 tooth8 = af.createTransformedShape( ___ ); //8th gear tooth As given above, in Line10, what is the parameter given? Give the object variable

. jrt_0011 (3:43:44 PM): tooth3 yusenkaisha_blue (3:45:41 PM): yung car yusenkaisha_blue (3:45:42 PM): Given: Length between two points AB = 80, BC = 80, CD = 240, DE = 80, EF = 80, HI = 220, JK = 120, KA = 80 Points (x, y) A =(100, 240), G = (645, 160), H = (520, 80) Program Code: Line1 GeneralPath gp = new GeneralPath(); Line2 gp.moveTo(Ax, Ay); Line3 gp.lineTo(Bx,By); Line4 gp.quadTo(C1x,C1y,Cx,Cy); //C1 is control point Line5 gp.lineTo(Dx,Dy); Line6 gp.quadTo(C2x, C2y,Ex, Ey); //C2 is control point Line7 gp.lineTo(Fx,Fy); Line8 gp.lineTo(Gx,Gy); Line9 gp.quadTo(C3x,C3y,Hx,Hy); //C3 is control point Line10 gp.lineTo(Ix,Iy); Line11 gp.lineTo(Jx,Jy); Line12 gp.lineTo(Kx, Ky); Line13 gp.closePath(); As given above, in Line11, determine the value of Jx (Point J x-component). yusenkaisha_blue (3:46:12 PM): sorry garapalan na pagcopy paste ko. 20mins nalan g e haha jrt_0011 (3:46:31 PM): 100+120 yusenkaisha_blue (3:46:35 PM): 220 jrt_0011 (3:46:39 PM): yn :D yusenkaisha_blue (3:46:40 PM): next ko na jrt_0011 (3:46:47 PM): opo yusenkaisha_blue (3:47:03 PM): stop light :D yusenkaisha_blue (3:47:05 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); Line yusenkaisha_blue (3:47:12 PM): Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line9, what is the parameter given? Give the object variable. yusenkaisha_blue (3:47:28 PM): rectyelow2? jrt_0011 (3:47:30 PM): rectRed1 yusenkaisha_blue (3:48:51 PM): race track yusenkaisha_blue (3:48:53 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang

le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line1 Rectangle2D.Double rect1 = new Rectangle2D.Double(x1, y1, w, h); //rect 1 is at A As given above, in Line1, determine the value of y1 (y-component). yusenkaisha_blue (3:49:03 PM): 500+500? yusenkaisha_blue (3:49:05 PM): 500? jrt_0011 (3:49:19 PM): 500 jrt_0011 (3:49:29 PM): hmm jrt_0011 (3:49:31 PM): w8 jrt_0011 (3:49:54 PM): 490 yusenkaisha_blue (3:49:57 PM): nanext ko na hahahhaah yusenkaisha_blue (3:50:00 PM): okay lang LD yusenkaisha_blue (3:50:01 PM): :D yusenkaisha_blue (3:50:11 PM): stop light ulit jrt_0011 (3:50:15 PM): nyak nagmamadali si lyka haha yusenkaisha_blue (3:50:21 PM): Given: Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light2 (TL2) for Road2, TL2 is to be constructed from TL1 (rectRed1, rectYellow1, rectGreen1, redLight1, yellowLight1, greenLight1, timer1 , top1) Line14 Shape rectRed2, rectYellow2, rectGreen2; Line15 Shape redLight2, yellowLight2, greenLight2, timer2, top2; Line16 af.setToTranslation(dx1,dy1); //af is an AffineTransf orm object Line17 rectRed2 = af.createTransformedShape( ____ ); Line18 rectYellow2 = af.createTransformedShape( ____ ); Line19 rectGreen2 = af.createTransformedShape( ____ ); yusenkaisha_blue (3:50:27 PM): Line20 redLight2 = af.createTransformedShape( ____ ); Line21 yellowLight2 = af.createTransformedShape( ____ ); Line22 greenLight2 = af.createTransformedShape( ____ ); Line23 timer2 = af.createTransformedShape( ____ ); Line24 top2 = af.createTransformedShape( ____ ); As given above, in Line17, what is the parameter given? Give the object variable . yusenkaisha_blue (3:50:36 PM): hahahaha kabado eh. 14mins nalang :)) jrt_0011 (3:50:56 PM): rectRed1 yusenkaisha_blue (3:51:28 PM): traffic light ulit yusenkaisha_blue (3:51:29 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh);

Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); Line yusenkaisha_blue (3:51:35 PM): Line7 AffineTransform af = new AffineTransform (); Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line1, determine the value of rx (x-component). jrt_0011 (3:52:02 PM): 50 yusenkaisha_blue (3:52:33 PM): gear :D yusenkaisha_blue (3:52:36 PM): Given: Gear Gear center point (cx, cy) = (300, 300) Line32 //Assume gear = gear outer teeth (which is assumed to be constructed a lready) Line33 //To construct the gear inner teeth based from gear outer teeth Line34 Shape c2; Line35 af.setToTranslation(-cx, -cy); // af is an AffineTransform object Line36 c2 = af.createTransformedShape( ___ ); Line37 af.setToScale(sx, sy); Line38 c2 = af.createTransformedShape( ___ ); Line39 af.setToTranslation(cx, cy); Line40 c2 = af.createTransformedShape( ___ ); Line41 Area gearIn = new Area( ___ ); As given above, in Line36, what is the parameter given? Give the object variable . jrt_0011 (3:53:09 PM): gear yusenkaisha_blue (3:53:38 PM): race track yusenkaisha_blue (3:53:40 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line1 Rectangle2D.Double rect1 = new Rectangle2D.Double(x1, y1, w, h); //rect 1 is at A Line2 Shape rect2, rect3, rect4, rect5, rect6, rect7, rect8; Line3 AffineTransform af = new AffineTransform(); Line4 af.setToTranslation(dx1, dy1); Line5 rect2 = af.createTransformedShape(rect1); Line6 double theta1 = angleDeg yusenkaisha_blue (3:53:46 PM): Line6 double theta1 = angleDeg1*Math.PI/180; Line7 af.setToRotation(theta1, Bx, By); //assume clockwise rotation Line8 rect3 = af.createTransformedShape(rect2); //rect2 is at B Line9 af.setToTranslation(dx2, dy2); Line10 rect3 = af.createTransformedShape(rect3); //rect3 is at C As given above, in Line6, determine the value of angleDeg1 (value of theta1 in d

egrees). Assume the rotation is clockwise. For your answer, round off the angle in degrees to the nearest integer. jrt_0011 (3:54:04 PM): :)) sagot kom dyan 45 jrt_0011 (3:54:11 PM): nung sa test yusenkaisha_blue (3:54:21 PM): tama yun! hahahaa jrt_0011 (3:54:32 PM): lol sana yusenkaisha_blue (3:54:53 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); yusenkaisha_blue (3:54:59 PM): Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line11, what is the parameter given? Give the object variable . yusenkaisha_blue (3:55:11 PM): red? jrt_0011 (3:55:16 PM): redLight1 yusenkaisha_blue (3:55:43 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); Line yusenkaisha_blue (3:55:49 PM): Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line2, determine the value of lx (x-component). jrt_0011 (3:56:11 PM): 50 >:) jrt_0011 (3:56:19 PM): joke yusenkaisha_blue (3:56:42 PM): sagot lang ng sagopt hahhahahahaha yusenkaisha_blue (3:56:45 PM): 10mins nalang :)) yusenkaisha_blue (3:56:47 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang

le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line25 af.setToTranslation(dx7, dy7); //af is an AffineTransfo rm object Line26 rect8 = af.createTransformedShape(rect7); //rect7 is at G and rect8 is at H As given above, in Line25, determine the value of dx7 (x-component difference). yusenkaisha_blue (3:56:55 PM): yung race track yan jrt_0011 (3:57:39 PM): 200 yusenkaisha_blue (3:58:11 PM): stop light yusenkaisha_blue (3:58:17 PM): Given: Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A = (50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light2 (TL2) for Road2, TL2 is to be constructed from TL1 (rectRed1, rectYellow1, rectGreen1, redLight1, yellowLight1, greenLight1, timer1 , top1) Line14 Shape rectRed2, rectYellow2, rectGreen2; Line15 Shape redLight2, yellowLight2, greenLight2, timer2, top2; Line16 af.setToTranslation(dx1,dy1); //af is an AffineTransf orm object Line17 rectRed2 = af.createTransformedShape( ____ ); Line18 rectYellow2 = af.createTransformedShape( ____ ); Line19 rectGreen2 = af.createTransformedShape( ____ ); yusenkaisha_blue (3:58:24 PM): Line20 redLight2 = af.createTransformedShape( ____ ); Line21 yellowLight2 = af.createTransformedShape( ____ ); Line22 greenLight2 = af.createTransformedShape( ____ ); Line23 timer2 = af.createTransformedShape( ____ ); Line24 top2 = af.createTransformedShape( ____ ); As given above, in Line16, determine the value of dy1 (y-component difference). jrt_0011 (3:58:47 PM): 40 jrt_0011 (3:58:49 PM): 400 jrt_0011 (3:58:51 PM): 400 sagot yusenkaisha_blue (3:59:21 PM): Negative values is not allowed in scaling transfo rmation. yusenkaisha_blue (3:59:23 PM): true? yusenkaisha_blue (3:59:23 PM): haha jrt_0011 (3:59:30 PM): false yusenkaisha_blue (3:59:58 PM): Given: Gear Line16 Area gear = new Area(elli1); Line17 Area t1 = new Area(tooth1); Line18 Area t2 = new Area(tooth2); Line19 Area t3 = new Area(tooth3); Line20 Area t4 = new Area(tooth4); Line21 Area t5 = new Area(tooth5); Line22 Area t6 = new Area(tooth6); Line23 Area t7 = new Area(tooth7); Line24 Area t8 = new Area(tooth8);

Based on the constructed areas, how many set operations to perform in order to c omplete the gear outer teeth construction shown above? jrt_0011 (4:00:19 PM): 9 yusenkaisha_blue (4:01:13 PM): manghuhula na ko. 3mins nalang. 43 palang ako hah a wait lang jrt_0011 (4:01:21 PM): sige yusenkaisha_blue (4:04:37 PM): nagcclose ba eleap pag time na? yusenkaisha_blue (4:04:46 PM): hindi nagcclose yung akin. 1hr and 31 mins na jrt_0011 (4:04:48 PM): hnd ko sure :)) jrt_0011 (4:04:51 PM): sige lng jrt_0011 (4:04:55 PM): sagot lng ng sagothahahah yusenkaisha_blue (4:05:01 PM): anyway hahahaha magtatanong na ko ulit sayo. ok l ang> aa yusenkaisha_blue (4:05:01 PM): haha yusenkaisha_blue (4:05:04 PM): ? jrt_0011 (4:05:26 PM): sige yusenkaisha_blue (4:05:33 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line18 af.setToTranslation(dx5, dy5); //af is an AffineTransform object Line19 rect6 = af.createTransformedShape(rect5); //rect5 is at E Line20 double theta3 = angleDeg3*Math.PI/180; Line21 af.setToRotation(theta3, Fx, Fy); //assume clockwise rotation Line22 rect7 = af.createTransformedShape(rect6); yusenkaisha_blue (4:05:41 PM): Line23 af.setToTranslation(dx6, dy6); Line24 rect7 = af.createTransformedShape(rect7); //rect7 is at G As given above, in Line23, determine the value of dy6 (y-component difference). jrt_0011 (4:06:02 PM): 0 yusenkaisha_blue (4:06:21 PM): Matrix multiplication of geometric transformation s is noncommutative. yusenkaisha_blue (4:06:24 PM): false? jrt_0011 (4:06:37 PM): tru jrt_0011 (4:06:40 PM): true ata yusenkaisha_blue (4:07:04 PM): eto yung car yusenkaisha_blue (4:07:06 PM): Given: Length between two points AB = 80, BC = 80, CD = 240, DE = 80, EF = 80, HI = 220, JK = 120, KA = 80 Points (x, y) A =(100, 240), G = (645, 160), H = (520, 80) Program Code: Line1 GeneralPath gp = new GeneralPath(); Line2 gp.moveTo(Ax, Ay); Line3 gp.lineTo(Bx,By); Line4 gp.quadTo(C1x,C1y,Cx,Cy); //C1 is control point Line5 gp.lineTo(Dx,Dy); Line6 gp.quadTo(C2x, C2y,Ex, Ey); //C2 is control point Line7 gp.lineTo(Fx,Fy); Line8 gp.lineTo(Gx,Gy); Line9 gp.quadTo(C3x,C3y,Hx,Hy); //C3 is control point Line10 gp.lineTo(Ix,Iy); Line11 gp.lineTo(Jx,Jy);

Line12 gp.lineTo(Kx, Ky); Line13 gp.closePath(); As given above, in Line7, determine the value of Fx (Point F x-component). jrt_0011 (4:07:44 PM): 100+80+80+240+80+80 jrt_0011 (4:08:08 PM): 660 yusenkaisha_blue (4:08:34 PM): In Java 2D the angle must be specified in radian. yusenkaisha_blue (4:08:36 PM): false yusenkaisha_blue (4:08:37 PM): :)) jrt_0011 (4:08:42 PM): true yusenkaisha_blue (4:10:15 PM): Given: Two Traffic Lights (TL1 and TL2) Light Rectangle = 100 x 100 Light Diameter = 80 Note: Light center is at the mid-point of its rectangle . Points (x, y) A =(50, 100), B = (450, 100), C = (150, 150), D = (550, 150) Program Code: Traffic Light1 (TL1) for Road1 Line1 Rectangle2D.Double rectRed1 = new Rectangle2D.Double(rx, ry, rw, rh); Line2 Ellipse2D.Double redLight1 = new Ellipse2D.Double(lx, ly, lw, lh); Line3 Rectangle2D.Double timer1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 QuadCurve2D.Double top1 = new QuadCurve2D.Double(p1x,p1y, c1x,c1y, p2x, p2y); Line5 //To construct yellow light and green light from red light of TL1 Line6 Shape rectYellow1, rectGreen1, yellowLight1, greenLight1; Line7 AffineTransform af = new AffineTransform(); Line yusenkaisha_blue (4:10:24 PM): Line8 af.setToTranslation(dx, dy); Line9 rectYellow1 = af.createTransformedShape( ____ ); Line10 rectGreen1 = af.createTransformedShape( ____ ); Line11 yellowLight1 = af.createTransformedShape( ____ ); Line12 greenLight1 = af.createTransformedShape( ____ ); As given above, in Line10, what is the parameter given? Give the object variable . jrt_0011 (4:10:33 PM): rectYellow1 yusenkaisha_blue (4:11:17 PM): eto race track yusenkaisha_blue (4:11:18 PM): Given: Simple Animation Rectangle width = 50, Rectangle height = 20 Note: Same size for all rectang le Points (x, y) A = (500, 500), B = (100, 500), C = (300, 400), D = (500, 300), E = (300, 200), F = (100, 100), G = (300, 100), H = (500, 100) Assume the rectangles are constructed based from the given mid points. That is, the mid point of rect1 is A, rect2 is B, rect3 is C, rect4 is D, rect5 is E, rec t6 is F, rect7 is G and rect8 is H. Program Code: Line1 Rectangle2D.Double rect1 = new Rectangle2D.Double(x1, y1, w, h); //rect 1 is at A As given above, in Line1, determine the value of x1 (x-component). jrt_0011 (4:11:20 PM): hahaha jrt_0011 (4:11:51 PM): 475 yusenkaisha_blue (4:12:16 PM): Given: Length between two points AB = 80, BC = 80, CD = 240, DE = 80, EF = 80, HI = 220, JK = 120, KA = 80 Points (x, y) A =(100, 240), G = (645, 160), H = (520, 80) Program Code: Line1 GeneralPath gp = new GeneralPath(); Line2 gp.moveTo(Ax, Ay);

Line3 gp.lineTo(Bx,By); Line4 gp.quadTo(C1x,C1y,Cx,Cy); Line5 gp.lineTo(Dx,Dy); Line6 gp.quadTo(C2x, C2y,Ex, Ey); Line7 gp.lineTo(Fx,Fy); Line8 gp.lineTo(Gx,Gy); Line9 gp.quadTo(C3x,C3y,Hx,Hy); Line10 gp.lineTo(Ix,Iy); Line11 gp.lineTo(Jx,Jy); Line12 gp.lineTo(Kx, Ky); Line13 gp.closePath();

//C1 is control point //C2 is control point //C3 is control point

As given above, in Line4, determine the value of Cy (Point C y-component). yusenkaisha_blue (4:12:23 PM): yung car :D hhahaha jrt_0011 (4:13:02 PM): 240 yusenkaisha_blue (4:13:41 PM): Given: Gear Line1 Ellipse2D.Double elli1 = new Ellipse2D.Double(x, y, w, h); Line2 //1st gear tooth Line3 Rectangle2D.Double tooth1 = new Rectangle2D.Double(tx, ty, tw, th); Line4 AffineTransform af = new AffineTransform(); Line5 Shape tooth2, tooth3, tooth4, tooth5, tooth6, tooth7, tooth8; Line6 double theta = angleDeg*Math.PI/180; //angle of rotation Line7 af.setToRotation(theta, cx, cy); //point of rotation (cx, cy ) Line8 tooth2 = af.createTransformedShape( ___ ); //2nd gear tooth Line9 tooth3 = af.createTransformedShape( ___ ); //3rd gear tooth Line10 tooth4 = af.createTransformedShape( ___ ); //4th gear tooth Line11 tooth5 = af.createTransformedShape( ___ ); //5th gear tooth yusenkaisha_blue (4:13:47 PM): Line13 tooth7 = af.createTransformedShape( ___ ) ; //7th gear tooth Line14 tooth8 = af.createTransformedShape( ___ ); //8th gear tooth As given above, in Line14, what is the parameter given? Give the object variable . yusenkaisha_blue (4:13:50 PM): TOOTH7? jrt_0011 (4:13:55 PM): tooth7 jrt_0011 (4:13:58 PM): nice jrt_0011 (4:14:04 PM): small caps ha jrt_0011 (4:14:05 PM): :)) yusenkaisha_blue (4:15:02 PM): 36/59 :)))))) yusenkaisha_blue (4:15:10 PM): SALAMAT RAP :)) jrt_0011 (4:17:53 PM): wag ka magbbgay saken ng load ha :)) yusenkaisha_blue (4:17:53 PM): sobrang thanks hehe jrt_0011 (4:18:00 PM): no problem :D jrt_0011 (4:18:06 PM): sige po byebye jrt_0011 (4:18:07 PM): ^^ yusenkaisha_blue (4:18:11 PM): grabe. bukas nalang. if ever. haha. salamat yusenkaisha_blue (4:18:13 PM): ingat :))

Anda mungkin juga menyukai