/ *   
 
   *   P R O J E C T :   N y A R T o o l k i t C S ( E x t e n s i o n ) 
 
   *   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   *   T h e   N y A R T o o l k i t C S   i s   J a v a   e d i t i o n   A R T o o l K i t   c l a s s   l i b r a r y . 
 
   *   C o p y r i g h t   ( C ) 2 0 0 8 - 2 0 0 9   R y o   I i z u k a 
 
   * 
 
   *   T h i s   p r o g r a m   i s   f r e e   s o f t w a r e :   y o u   c a n   r e d i s t r i b u t e   i t   a n d / o r   m o d i f y 
 
   *   i t   u n d e r   t h e   t e r m s   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e   a s   p u b l i s h e d   b y 
 
   *   t h e   F r e e   S o f t w a r e   F o u n d a t i o n ,   e i t h e r   v e r s i o n   3   o f   t h e   L i c e n s e ,   o r 
 
   *   ( a t   y o u r   o p t i o n )   a n y   l a t e r   v e r s i o n . 
 
   *   
 
   *   T h i s   p r o g r a m   i s   d i s t r i b u t e d   i n   t h e   h o p e   t h a t   i t   w i l l   b e   u s e f u l , 
 
   *   b u t   W I T H O U T   A N Y   W A R R A N T Y ;   w i t h o u t   e v e n   t h e   i m p l i e d   w a r r a n t y   o f 
 
   *   M E R C H A N T A B I L I T Y   o r   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E .     S e e   t h e 
 
   *   G N U   G e n e r a l   P u b l i c   L i c e n s e   f o r   m o r e   d e t a i l s . 
 
   * 
 
   *   Y o u   s h o u l d   h a v e   r e c e i v e d   a   c o p y   o f   t h e   G N U   G e n e r a l   P u b l i c   L i c e n s e 
 
   *   a l o n g   w i t h   t h i s   p r o g r a m .     I f   n o t ,   s e e   < h t t p : / / w w w . g n u . o r g / l i c e n s e s / > . 
 
   *   
 
   *   F o r   f u r t h e r   i n f o r m a t i o n   p l e a s e   c o n t a c t . 
 
   * 	 h t t p : / / n y a t l a . j p / n y a t o o l k i t / 
 
   * 	 < a i r m a i l ( a t ) e b o n y . p l a l a . o r . j p >   o r   < n y a t l a ( a t ) n y a t l a . j p > 
 
   *   
 
   * / 
 
 u s i n g   S y s t e m . D i a g n o s t i c s ; 
 
 n a m e s p a c e   j p . n y a t l a . n y a r t o o l k i t . c s . c o r e 
 
 { 
 
 
 
 
 
 
 
 
 
         / * * 
 
           *   S0n0000o00`яl0(uD0_0P e r s p e c t i v e 000000{Y00ba000g0Y00
 
           *   Napn0V҉b_h0wb_K000`яln0	Yb_000000{W0~0Y00
 
           *   00000o008 Pn0[pe$Pg0Y00MRk0ԏtSW0~0Y00
 
           *   }b000g00{ @ l i n k   # g e t P a r a m } pe0[ňW0f0O0`0U0D00
 
           * / 
 
         p u b l i c   a b s t r a c t   c l a s s   N y A R P e r s p e c t i v e P a r a m G e n e r a t o r 
 
         { 
 
                 / * *   \q_n0Wp( X ) * / 
 
                 p r o t e c t e d   i n t   _ l o c a l _ x ; 
 
                 / * *   \q_n0Wp( Y ) * / 
 
                 p r o t e c t e d   i n t   _ l o c a l _ y ; 
 
                 / * * 
 
                   *   0000000g0Y00
 
                   *   	YcHQn0Wnp0-[W0f00000000\ObW0~0Y00
 
                   *   @ p a r a m   i _ l o c a l _ x 
 
                   *   00000{n0Wnp0c[W0~0Y0000000$Po01 g0Y00
 
                   *   @ p a r a m   i _ l o c a l _ y 
 
                   *   00000{n0Wnp0c[W0~0Y0000000$Po01 g0Y00
 
                   * / 
 
                 p u b l i c   N y A R P e r s p e c t i v e P a r a m G e n e r a t o r ( i n t   i _ l o c a l _ x ,   i n t   i _ l o c a l _ y ) 
 
                 { 
 
                         t h i s . _ l o c a l _ x   =   i _ l o c a l _ x ; 
 
                         t h i s . _ l o c a l _ y   =   i _ l o c a l _ y ; 
 
                         r e t u r n ; 
 
                 } 
 
                 / * * 
 
                   *   S0n0peo00`яln0000000{W0f00ԏtSW0~0Y00
 
                   *   @ p a r a m   i _ s i z e 
 
                   *   	YcHQn0wb_n00000c[W0~0Y00
 
                   *   @ p a r a m   i _ v e r t e x 
 
                   *   	YcCQn0p0c[W0~0Y00 }peo04 g0j0Q00p0j00~0[000
 
                   *   @ p a r a m   o _ p a r a m 
 
                   *   \q_	Yc00000n0QR0000000c[W0~0Y00 }peo08 g0j0Q00p0j00~0[000
 
                   *   @ r e t u r n 
 
                   *   bRY00h0t r u e 0ԏW0~0Y00
 
                   *   @ 
 
                   * / 
 
                 p u b l i c   b o o l   g e t P a r a m ( N y A R I n t S i z e   i _ s i z e ,   N y A R I n t P o i n t 2 d [ ]   i _ v e r t e x ,   d o u b l e [ ]   o _ p a r a m ) 
 
                 { 
 
                         D e b u g . A s s e r t ( i _ v e r t e x . L e n g t h   = =   4 ) ; 
 
                         r e t u r n   t h i s . g e t P a r a m ( i _ s i z e . w ,   i _ s i z e . h ,   i _ v e r t e x [ 0 ] . x ,   i _ v e r t e x [ 0 ] . y ,   i _ v e r t e x [ 1 ] . x ,   i _ v e r t e x [ 1 ] . y ,   i _ v e r t e x [ 2 ] . x ,   i _ v e r t e x [ 2 ] . y ,   i _ v e r t e x [ 3 ] . x ,   i _ v e r t e x [ 3 ] . y ,   o _ p a r a m ) ; 
 
                 } 
 
                 / * * 
 
                   *   S0n0peo00`яln0000000{W0f00ԏtSW0~0Y00
 
                   *   @ p a r a m   i _ s i z e 
 
                   *   	YcHQn0wb_n00000c[W0~0Y00
 
                   *   @ p a r a m   i _ v e r t e x 
 
                   *   	YcCQn0p0c[W0~0Y00 }peo04 g0j0Q00p0j00~0[000
 
                   *   @ p a r a m   o _ p a r a m 
 
                   *   \q_	Yc00000n0QR0000000c[W0~0Y00 }peo08 g0j0Q00p0j00~0[000
 
                   *   @ r e t u r n 
 
                   *   bRY00h0t r u e 0ԏW0~0Y00
 
                   *   @ 
 
                   * / 
 
                 p u b l i c   b o o l   g e t P a r a m ( N y A R I n t S i z e   i _ s i z e ,   N y A R D o u b l e P o i n t 2 d [ ]   i _ v e r t e x ,   d o u b l e [ ]   o _ p a r a m ) 
 
                 { 
 
                         r e t u r n   t h i s . g e t P a r a m ( i _ s i z e . w ,   i _ s i z e . h ,   i _ v e r t e x [ 0 ] . x ,   i _ v e r t e x [ 0 ] . y ,   i _ v e r t e x [ 1 ] . x ,   i _ v e r t e x [ 1 ] . y ,   i _ v e r t e x [ 2 ] . x ,   i _ v e r t e x [ 2 ] . y ,   i _ v e r t e x [ 3 ] . x ,   i _ v e r t e x [ 3 ] . y ,   o _ p a r a m ) ; 
 
                 } 
 
                 / * * 
 
                   *   S0n0peo00`яln0000000{W0f00ԏtSW0~0Y00
 
                   *   @ p a r a m   i _ w i d t h 
 
                   *   	YcHQn0wb_n00000c[W0~0Y00
 
                   *   @ p a r a m   i _ h e i g h t 
 
                   *   	YcHQn0wb_n00000c[W0~0Y00
 
                   *   @ p a r a m   i _ v e r t e x 
 
                   *   	YcCQn0p0c[W0~0Y00 }peo04 g0j0Q00p0j00~0[000
 
                   *   @ p a r a m   o _ p a r a m 
 
                   *   \q_	Yc00000n0QR0000000c[W0~0Y00 }peo08 g0j0Q00p0j00~0[000
 
                   *   @ r e t u r n 
 
                   *   bRY00h0t r u e 0ԏW0~0Y00
 
                   *   @ 
 
                   * / 
 
                 p u b l i c   b o o l   g e t P a r a m ( i n t   i _ w i d t h ,   i n t   i _ h e i g h t ,   N y A R D o u b l e P o i n t 2 d [ ]   i _ v e r t e x ,   d o u b l e [ ]   o _ p a r a m ) 
 
                 { 
 
                         r e t u r n   t h i s . g e t P a r a m ( i _ w i d t h ,   i _ h e i g h t ,   i _ v e r t e x [ 0 ] . x ,   i _ v e r t e x [ 0 ] . y ,   i _ v e r t e x [ 1 ] . x ,   i _ v e r t e x [ 1 ] . y ,   i _ v e r t e x [ 2 ] . x ,   i _ v e r t e x [ 2 ] . y ,   i _ v e r t e x [ 3 ] . x ,   i _ v e r t e x [ 3 ] . y ,   o _ p a r a m ) ; 
 
                 } 
 
                 / * * 
 
                   *   S0n0peo00`яln0000000{W0f00ԏtSW0~0Y00
 
                   *   @ p a r a m   i _ w i d t h 
 
                   *   	YcHQn0wb_n00000c[W0~0Y00
 
                   *   @ p a r a m   i _ h e i g h t 
 
                   *   	YcHQn0wb_n00000c[W0~0Y00
 
                   *   @ p a r a m   i _ v e r t e x 
 
                   *   	YcCQn0p0c[W0~0Y00 }peo04 g0j0Q00p0j00~0[000
 
                   *   @ p a r a m   o _ p a r a m 
 
                   *   \q_	Yc00000n0QR0000000c[W0~0Y00 }peo08 g0j0Q00p0j00~0[000
 
                   *   @ r e t u r n 
 
                   *   bRY00h0t r u e 0ԏW0~0Y00
 
                   *   @ 
 
                   * / 
 
                 p u b l i c   b o o l   g e t P a r a m ( i n t   i _ w i d t h ,   i n t   i _ h e i g h t ,   N y A R I n t P o i n t 2 d [ ]   i _ v e r t e x ,   d o u b l e [ ]   o _ p a r a m ) 
 
                 { 
 
                         r e t u r n   t h i s . g e t P a r a m ( i _ w i d t h ,   i _ h e i g h t ,   i _ v e r t e x [ 0 ] . x ,   i _ v e r t e x [ 0 ] . y ,   i _ v e r t e x [ 1 ] . x ,   i _ v e r t e x [ 1 ] . y ,   i _ v e r t e x [ 2 ] . x ,   i _ v e r t e x [ 2 ] . y ,   i _ v e r t e x [ 3 ] . x ,   i _ v e r t e x [ 3 ] . y ,   o _ p a r a m ) ; 
 
                 } 
 
                 / * * 
 
                   *   S0n0peo00`яln0000000{W0f00ԏtSW0~0Y00
 
                   *   [ň000g0o00`яln0000000{Y00Qt0[ňW0f0O0`0U0D00
 
                   *   @ p a r a m   i _ d e s t _ w 
 
                   *   QRHQwb_n0E^0c[W0~0Y00
 
                   *   @ p a r a m   i _ d e s t _ h 
 
                   *   QRHQwb_n0ؚU00c[W0~0Y00
 
                   *   @ p a r a m   x 1 
 
                   *   	YcCQV҉b_n0p1 n0X ^jg0Y00
 
                   *   @ p a r a m   y 1 
 
                   *   	YcCQV҉b_n0p1 n0Y ^jg0Y00
 
                   *   @ p a r a m   x 2 
 
                   *   	YcCQV҉b_n0p2 n0X ^jg0Y00
 
                   *   @ p a r a m   y 2 
 
                   *   	YcCQV҉b_n0p2 n0Y ^jg0Y00
 
                   *   @ p a r a m   x 3 
 
                   *   	YcCQV҉b_n0p3 n0X ^jg0Y00
 
                   *   @ p a r a m   y 3 
 
                   *   	YcCQV҉b_n0p3 n0Y ^jg0Y00
 
                   *   @ p a r a m   x 4 
 
                   *   	YcCQV҉b_n0p4 n0X ^jg0Y00
 
                   *   @ p a r a m   y 4 
 
                   *   	YcCQV҉b_n0p4 n0Y ^jg0Y00
 
                   *   @ p a r a m   o _ p a r a m 
 
                   *  0P}g0SQ0S0MR0c[W0~0Y00
 
                   *   @ r e t u r n 
 
                   *   {k0bRY00h0t r u e 0ԏW0~0Y00
 
                   *   @ 
 
                   * / 
 
                 p u b l i c   a b s t r a c t   b o o l   g e t P a r a m ( i n t   i _ d e s t _ w ,   i n t   i _ d e s t _ h ,   d o u b l e   x 1 ,   d o u b l e   y 1 ,   d o u b l e   x 2 ,   d o u b l e   y 2 ,   d o u b l e   x 3 ,   d o u b l e   y 3 ,   d o u b l e   x 4 ,   d o u b l e   y 4 ,   d o u b l e [ ]   o _ p a r a m ) ; 
 
         } 
 
 } 