Example: bankruptcy

回転する矩形と点の当たり判定 - club.konan-u ...

(TRectangle).. TRectangle . (cx, cy) (Width), (Height) .. Left() Right(). Top(). (TPoint) 1. Height C++Builder (cx , cy). Bottom(). TPoint . Width x, y . TRectangle 2. (x , y) TPoint 1 TPoint < > < > .. 2 Windows POINT .. 1. TRectangle 2. TPoint . (x, y) . x Left Right y Top Bottom .. TRectangle TPoint .. B. 1 . (cx, cy). r .. A. r D.. (tx, ty) C. A r . (x, y). B B C.. C r D A .. 1. D . 2.. 1. D . (cx, cy) C (x, y) D (tx, ty) . C l . l ( x cx) 2 ( y cy ) 2 (1).. C C'(x 2, y 2) . D D'(tx 2, ty 2) . x 2 x cx r1. cos r2 O. y 2 y cy . (2) r2. tx 2 tx cx r ty 2 ty cy sin r2. D'. C' r1 D' (tx 2, ty 2) C'. r2 r2 (x 2, y 2).. y2. r1 tan 1. x2 (3). r2 r1 r D' 1 . (cos r2, sin r2) l D'.

回転する矩形と点の当たり判定 回転する矩形(四角形)と点の当たり判定について説明します。まず、 作業しやすくするために、矩形を表す構造体を作成します。

Tags:

  Kanon

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of 回転する矩形と点の当たり判定 - club.konan-u ...

1 (TRectangle).. TRectangle . (cx, cy) (Width), (Height) .. Left() Right(). Top(). (TPoint) 1. Height C++Builder (cx , cy). Bottom(). TPoint . Width x, y . TRectangle 2. (x , y) TPoint 1 TPoint < > < > .. 2 Windows POINT .. 1. TRectangle 2. TPoint . (x, y) . x Left Right y Top Bottom .. TRectangle TPoint .. B. 1 . (cx, cy). r .. A. r D.. (tx, ty) C. A r . (x, y). B B C.. C r D A .. 1. D . 2.. 1. D . (cx, cy) C (x, y) D (tx, ty) . C l . l ( x cx) 2 ( y cy ) 2 (1).. C C'(x 2, y 2) . D D'(tx 2, ty 2) . x 2 x cx r1. cos r2 O. y 2 y cy . (2) r2. tx 2 tx cx r ty 2 ty cy sin r2. D'. C' r1 D' (tx 2, ty 2) C'. r2 r2 (x 2, y 2).. y2. r1 tan 1. x2 (3). r2 r1 r D' 1 . (cos r2, sin r2) l D'.

2 Tx 2 l cos r2. (4). ty 2 l sin r2. D'(tx2, ty2) D(tx,ty) . tx tx 2 cx ty ty 2 cy D .. ~mclass/


Related search queries