/ *   
 
   *   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   C #   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 ; 
 
 u s i n g   S y s t e m . D i a g n o s t i c s ; 
 
 u s i n g   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 ; 
 
 
 
 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 . r p f 
 
 
 
 { 
 
         / * * 
 
           *   R e a l i t y 000000[W0~0Y00
 
           *   { @ l i n k   # t a g } NYn0000000k0[Y00fM00d\O0L0j0D0g0O0`0U0D00
 
           * 
 
           * / 
 
         p u b l i c   c l a s s   N y A R R e a l i t y T a r g e t   :   N y A R M a n a g e d O b j e c t 
 
         { 
 
 	         / * *  00000000000MnY0000000000000L01uk000000000000Mng0M000
 
 	           *   { @ l i n k   I N y A R D i s p o s a b l e } 00000000cd00000000c[Y00h00S0n0000000>eY00h0M0k0{ @ l i n k   I N y A R D i s p o s a b l e # d i s p o s e ( ) } 0000Y000
 
 	           *   < p > { @ l i n k   I N y A R D i s p o s a b l e } 0000000o00M a n a g e d tXNg0o08^
N0< / p > 
 
 	           * / 
 
 	         p u b l i c   o b j e c t   t a g ; 
 
 
 
 	         p u b l i c   N y A R R e a l i t y T a r g e t ( N y A R R e a l i t y T a r g e t P o o l   i _ p o o l ) 
 
                         :   b a s e ( i _ p o o l . _ o p _ i n t e r f a c e ) 
 
 	         { 
 
 	 	         t h i s . _ r e f _ p o o l = i _ p o o l ; 
 
 	         } 
 
 	         / * * 
 
 	           *   @ O v e r r i d e 
 
 	           * / 
 
 	         p u b l i c   o v e r r i d e   i n t   r e l e a s e O b j e c t ( ) 
 
 	         { 
 
 	 	         i n t   r e t = b a s e . r e l e a s e O b j e c t ( ) ; 
 
 	 	         i f ( r e t = = 0 ) 
 
 	 	         { 
 
 	 	 	         / / T A G 000000L0I N y A R D i s p o s a b l e 00000000cf0p00d i s p o s e 0000
 
 	 	 	         i f ( t h i s . _ r e f _ t r a c k t a r g e t   i s   I N y A R D i s p o s a b l e ) 
 
 	 	 	         { 
 
 	 	 	 	         ( ( I N y A R D i s p o s a b l e ) ( t h i s . _ r e f _ t r a c k t a r g e t ) ) . d i s p o s e ( ) ; 
 
 	 	 	         } 
 
 	 	 	         / / Sgq00000n0000000W0f00Sgqd
 
 	 	 	         t h i s . _ r e f _ t r a c k t a r g e t . t a g = n u l l ; 
 
 	 	 	         t h i s . _ r e f _ t r a c k t a r g e t . r e l e a s e O b j e c t ( ) ; 
 
 	 	         } 
 
 	 	         r e t u r n   r e t ; 
 
 	         } 
 
 	         / * *   !qRj00000I D $P* / 
 
 	         p u b l i c   c o n s t   i n t   I N V A L I D _ R E A L I T Y _ T A R G E T _ I D = - 1 ; 
 
                 p r i v a t e   s t a t i c   o b j e c t   _ s e r i a l _ l o c k   =   n e w   o b j e c t ( ) ; 
 
 	         p r i v a t e   s t a t i c   l o n g   _ s e r i a l _ c o u n t e r = 0 ; 
 
         	 
 
 	         / * * 
 
 	           *   I D ubhV00000n0<zP{VQg0 Naj0I D 0cd0S0h00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   s t a t i c   l o n g   c r e a t e S e r i a l I d ( ) 
 
 	         { 
 
 	 	         l o c k ( N y A R R e a l i t y T a r g e t . _ s e r i a l _ l o c k ) { 
 
 	 	 	         r e t u r n   N y A R R e a l i t y T a r g e t . _ s e r i a l _ c o u n t e r + + ; 
 
 	 	         } 
 
 	         } 
 
 	         / / / / / / / / / / / / / / / / / / / / / / / / 
 
         	 
 
 	         / * * 
 
 	           *   `1X
 
 	           * / 
 
 	         p r i v a t e   N y A R R e a l i t y T a r g e t P o o l   _ r e f _ p o o l ; 
 
 	         / / / / / / / / / / / / / / / / / / / / / / / / 
 
 	         / / t a r g e t n0W,g`1X
 
 
 
 	         / * *   QTQ0n0lQ000	Ypeg0Y00{ @ l i n k   # g e t S e r i a l I d } 0Oc0f0O0`0U0D00  * / 
 
 	         p u b l i c   l o n g   _ s e r i a l ; 
 
 	         / * *   QTQ0n0lQ000	Ypeg0Y00{ @ l i n k   # r e f T r a n s f o r m M a t r i x } 0Oc0f0O0`0U0D00  * / 
 
                 p u b l i c   r e a d o n l y   N y A R D o u b l e M a t r i x 4 4   _ t r a n s f o r m _ m a t r i x   =   n e w   N y A R D o u b l e M a t r i x 4 4 ( ) ; 
 
                 p u b l i c   r e a d o n l y   N y A R T r a n s M a t R e s u l t P a r a m   _ r e s u l t _ p a r a m   =   n e w   N y A R T r a n s M a t R e s u l t P a r a m ( ) ; 
 
 
 
 	         / * *   00000n0.z^0*gwn0000000  * / 
 
 	         p u b l i c   c o n s t   i n t   R T _ U N K N O W N       = 0 ; 
 
 	         / * *   00000n0.z^0ewn0000000  * / 
 
 	         p u b l i c   c o n s t   i n t   R T _ K N O W N           = 2 ; 
 
 	         / * *   00000n0.z^00j0O0m1YY00000000!kVn0p r o g r e s s g0000K00dSU0000  * / 
 
 	         p u b l i c   c o n s t   i n t   R T _ D E A D             = 4 ; 
 
 
 
 	         / * *   QTQ0p u b l i c 000	Ype0{ @ l i n k   # g e t T a r g e t T y p e ( ) } 0Oc0f0O0`0U0D00  * / 
 
 	         p u b l i c   i n t   _ t a r g e t _ t y p e ; 
 
         	 
 
 	         / * *   QTQ0p u b l i c 0000  00000n000000MOn0  * / 
 
 	         p u b l i c   N y A R R e c t O f f s e t   _ o f f s e t = n e w   N y A R R e c t O f f s e t ( ) ; 
 
 	         / * *   QTQ0p u b l i c 0000S0n000000L0SgqW0f0D00000000000  * / 
 
 	         p u b l i c   N y A R T a r g e t   _ r e f _ t r a c k t a r g e t ; 
 
 	         / * *   QTQ0p u b l i c 000000000
Nn0jk0dn0wb_0  * / 
 
 	         p u b l i c   N y A R S q u a r e   _ s c r e e n _ s q u a r e = n e w   N y A R S q u a r e ( ) ; 
 
 	         / * *   QTQ0p u b l i c 0000g e t G r a b b R a t e 0Oc0f0O0`0U0D00  * / 
 
 	         p u b l i c   i n t   g r a b _ r a t e ; 
 
         	 
 
 
 
         	 
 
 	         / * * 
 
 	           *   000^j|000000^j|k0	YcY00LRn0Sgq$P0ԏW0~0Y00
 
 	           *   S0n0$Po0	YfW0j0D0g0O0`0U0D00}ƖY00h0M0o000000\Oc0f0O0`0U0D00	
 
 	           *   @ r e t u r n 
 
 	           * / 
 
                 p u b l i c   N y A R D o u b l e M a t r i x 4 4   r e f T r a n s f o r m M a t r i x ( ) 
 
 	 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         r e t u r n   t h i s . _ t r a n s f o r m _ m a t r i x ; 
 
 	         } 
 
 	         / * * 
 
 	           *   S0n000000n00000ԏW0~0Y00
 
 	           *   { @ l i n k   # R T _ U N K N O W N } = *gx[0000002 !kCQ^j)R(uS
 
 	           *   { @ l i n k   # R T _ K N O W N }     = x[W0_0ewn00000003 !kCQ^j)R(uS
 
 	           *   { @ l i n k   # R T _ D E A D }       = !kn0p r o g r e s s g0JRdY0000000
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   i n t   g e t T a r g e t T y p e ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ t a r g e t _ t y p e ; 
 
 	         } 
 
 	         / * * 
 
 	           *   R e a l i t y Qg0 Naj0000000n00000I D g0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   l o n g   g e t S e r i a l I d ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . _ s e r i a l ; 
 
 	         } 
 
 
 
 	         / * * 
 
 	           *   S0n000000n0܈s0ԏW0~0Y000 - 1 0 0 n0pe$Pg0Y00
 
 	           *   2 0 0R0h0m1Yn0S'`L0ؚD0
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   i n t   g e t G r a b b R a t e ( ) 
 
 	         { 
 
 	 	         r e t u r n   t h i s . g r a b _ r a t e ; 
 
 	         } 
 
 	         / * * 
 
 	           *   00000n0pMRx0n0Sgq$P0ԏW0~0Y00S0n0$Po00N!kCQiQ|n0QR$Pg0Y00
 
 	           *   $PL0	gRj0n0o00!kn000000[LY00~0g0n0g0Y00
 
 	           *   @ r e t u r n 
 
 	           * / 
 
 	         p u b l i c   N y A R D o u b l e P o i n t 2 d [ ]   r e f T a r g e t V e r t e x ( ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ U N K N O W N   | |   t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         r e t u r n   ( ( N y A R R e c t T a r g e t S t a t u s ) ( t h i s . _ r e f _ t r a c k t a r g e t . _ r e f _ s t a t u s ) ) . v e r t e x ; 
 
 	         } 
 
 	         / * * 
 
 	           *   [awb_n0pMR0000W0f0ԏW0~0Y00
 
 	           *   =jWjk0n0wcko0LD0~0[000
 
 	           *   @ p a r a m   o _ v e r t e x 
 
 	           * / 
 
 	         p u b l i c   v o i d   g e t T a r g e t V e r t e x ( N y A R D o u b l e P o i n t 2 d [ ]   o _ v e r t e x ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ U N K N O W N   | |   t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         N y A R D o u b l e P o i n t 2 d [ ]   v = ( ( N y A R R e c t T a r g e t S t a t u s ) ( t h i s . _ r e f _ t r a c k t a r g e t . _ r e f _ s t a t u s ) ) . v e r t e x ; 
 
 	 	         f o r ( i n t   i = 3 ; i > = 0 ; i - - ) { 
 
 	 	 	         o _ v e r t e x [ i ] . s e t V a l u e ( v [ i ] ) ; 
 
 	 	         } 
 
 	         } 
 
 	         / * * 
 
 	           *   [awb_n0-N.Yp0ԏW0~0Y00
 
 	           *   =jWjk0n0wcko0LD0~0[000
 
 	           *   @ p a r a m   o _ c e n t e r 
 
 	           * / 
 
 	         p u b l i c   v o i d   g e t T a r g e t C e n t e r ( N y A R D o u b l e P o i n t 2 d   o _ c e n t e r ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ U N K N O W N   | |   t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         N y A R D o u b l e P o i n t 2 d . m a k e C e n t e r ( ( ( N y A R R e c t T a r g e t S t a t u s ) ( t h i s . _ r e f _ t r a c k t a r g e t . _ r e f _ s t a t u s ) ) . v e r t e x , 4 , o _ c e n t e r ) ; 
 
 	         } 
 
 	         / * * 
 
 	           *   { @ l i n k   # g e t T a r g e t C e n t e r } n0QRWUD0n0peg0Y00
 
 	           *   @ p a r a m   o _ c e n t e r 
 
 	           * / 
 
 	         p u b l i c   v o i d   g e t T a r g e t C e n t e r ( N y A R I n t P o i n t 2 d   o _ c e n t e r ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ U N K N O W N   | |   t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         N y A R D o u b l e P o i n t 2 d . m a k e C e n t e r ( ( ( N y A R R e c t T a r g e t S t a t u s ) ( t h i s . _ r e f _ t r a c k t a r g e t . _ r e f _ s t a t u s ) ) . v e r t e x , 4 , o _ c e n t e r ) ; 
 
 	         } 
 
 	         / * * 
 
 	           *   ;ub
Nn0pL00S0n0000000ibY00pn0QtPk0B00K0$R[W0~0Y00
 
 	           *   ( {Vg0o0j0O00pn0QtPg0B00S0h0k0laW0f0O0`0U0D00) 
 
 	           *   S0n0peo00K n o w n / U n k n o w n 00000k0O(ug0M0~0Y00
 
 	           *   @ p a r a m   i _ x 
 
 	           *   @ p a r a m   i _ y 
 
 	           *   @ r e t u r n 
 
 	           * / 
 
                 p u b l i c   b o o l   i s I n n e r V e r t e x P o i n t 2 d ( i n t   i _ x ,   i n t   i _ y ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ U N K N O W N   | |   t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         N y A R D o u b l e P o i n t 2 d [ ]   v x = ( ( N y A R R e c t T a r g e t S t a t u s ) ( t h i s . _ r e f _ t r a c k t a r g e t . _ r e f _ s t a t u s ) ) . v e r t e x ; 
 
 	 	         f o r ( i n t   i = 3 ; i > = 0 ; i - - ) { 
 
 	 	 	         i f ( N y A R D o u b l e P o i n t 2 d . c r o s s P r o d u c t 3 P o i n t ( v x [ i ] , v x [ ( i + 1 ) % 4 ] , i _ x , i _ y ) < 0 ) 
 
 	 	 	         { 
 
 	 	 	 	         r e t u r n   f a l s e ; 
 
 	 	 	         } 
 
 	 	         } 
 
 	 	         r e t u r n   t r u e ; 
 
 	         } 
 
 	         / * * 
 
 	           *   ;ub
Nn0pL00S0n0000000SbY00wb_n0QtPk0B00K00$R[W0~0Y00
 
 	           *   S0n0peo00K n o w n / U n k n o w n 00000k0O(ug0M0~0Y00
 
 	           *   @ p a r a m   i _ x 
 
 	           *   @ p a r a m   i _ y 
 
 	           *   @ r e t u r n 
 
 	           *   < p > 00: S0n0pek0o0n e w L0kc0f00n0g0la< / p > 
 
 	           * / 
 
                 p u b l i c   b o o l   i s I n n e r R e c t P o i n t 2 d ( i n t   i _ x ,   i n t   i _ y ) 
 
 	         { 
 
                         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e   = =   R T _ U N K N O W N   | |   t h i s . _ t a r g e t _ t y p e   = =   R T _ K N O W N ) ; 
 
 	 	         N y A R I n t R e c t   r e c t = n e w   N y A R I n t R e c t ( ) ; 
 
 	 	         N y A R D o u b l e P o i n t 2 d [ ]   v x = ( ( N y A R R e c t T a r g e t S t a t u s ) ( t h i s . _ r e f _ t r a c k t a r g e t . _ r e f _ s t a t u s ) ) . v e r t e x ; 
 
 	 	         r e c t . s e t A r e a R e c t ( v x , 4 ) ; 
 
 	 	         r e t u r n   r e c t . i s I n n e r P o i n t ( i _ x ,   i _ y ) ; 
 
 	         } 
 
         	 
 
 	         / * * 
 
 	           *   00000^j|n04 pg0K0S0~000W0\q_W0_0s^bK000R G B ;uP0o _ r a s t e r k0S_W0~0Y00
 
 	           *   @ p a r a m   i _ v e r t e x 
 
 	           *   00000n0000000Wn$Ph0W0_00p^j0 }peo04 g0B00S0h00( m m XSMO) 
 
 	           *   @ p a r a m   i _ m a t r i x 
 
 	           *   i _ v e r t e x k0i_Y00	YcLR0
 
 	           *   00000n0YRLR0c[Y00h0000000^j|k0j00~0Y00
Nj00p0n u l l 0-[W0f0O0`0U0D00
 
 	           *   @ p a r a m   i _ r e s o l u t i o n 
 
 	           *   1 0000B0_00n0000000$P( n ^ 2 hs) 
 
 	           *   @ p a r a m   o _ r a s t e r 
 
 	           *   QR000
 
 	           *   @ r e t u r n 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           *   < p > 00: S0n0pek0o0n e w L0kc0f00n0g0la< / p > 
 
 	           * / 
 
                 p u b l i c   b o o l   g e t R g b P a t t 3 d ( N y A R R e a l i t y S o u r c e   i _ s r c ,   N y A R D o u b l e P o i n t 3 d [ ]   i _ v e r t e x ,   N y A R D o u b l e M a t r i x 4 4   i _ m a t r i x ,   i n t   i _ r e s o l u t i o n ,   I N y A R R g b R a s t e r   o _ r a s t e r ) 
 
 	         { 
 
 	 	         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e = = R T _ K N O W N ) ; 
 
 	 	         N y A R D o u b l e P o i n t 2 d [ ]   d a 4 = t h i s . _ r e f _ p o o l . _ w k _ d a 2 _ 4 ; 
 
 	 	         N y A R D o u b l e P o i n t 3 d   v 3 d = n e w   N y A R D o u b l e P o i n t 3 d ( ) ; 
 
 	 	         i f ( i _ m a t r i x ! = n u l l ) { 
 
 	 	 	         / / YR	YcW0f0K00\q_	Yc
 
 	 	 	         f o r ( i n t   i = 3 ; i > = 0 ; i - - ) { 
 
 	 	 	 	         / / YR0	YfW0f0\q_	Yc
 
 	 	 	 	         i _ m a t r i x . t r a n s f o r m 3 d ( i _ v e r t e x [ i ] , v 3 d ) ; 
 
 	 	 	 	         t h i s . _ t r a n s f o r m _ m a t r i x . t r a n s f o r m 3 d ( v 3 d , v 3 d ) ; 
 
 	 	 	 	         t h i s . _ r e f _ p o o l . _ r e f _ p r j _ m a t . p r o j e c t ( v 3 d , d a 4 [ i ] ) ; 
 
 	 	 	         } 
 
 	 	         } e l s e { 
 
 	 	 	         / / \q_	Ycn00
 
 	 	 	         f o r ( i n t   i = 3 ; i > = 0 ; i - - ) { 
 
 	 	 	 	         / / YR0	YfW0f0\q_	Yc
 
 	 	 	 	         t h i s . _ t r a n s f o r m _ m a t r i x . t r a n s f o r m 3 d ( i _ v e r t e x [ i ] , v 3 d ) ; 
 
 	 	 	 	         t h i s . _ r e f _ p o o l . _ r e f _ p r j _ m a t . p r o j e c t ( v 3 d , d a 4 [ i ] ) ; 
 
 	 	 	         } 
 
 	 	         } 
 
 	 	         / / 0000n0S_
 
 	 	         r e t u r n   i _ s r c . r e f P e r s p e c t i v e R a s t e r R e a d e r ( ) . c o p y P a t t ( d a 4 , 0 , 0 , i _ r e s o l u t i o n ,   o _ r a s t e r ) ; 
 
 	         } 
 
 	         / * * 
 
 	           *   00000h0TX0s^bk0[W0_0wb_K00000000S_W0~0Y00
 
 	           *   @ p a r a m   i _ s r c 
 
 	           *   @ p a r a m   i _ x 
 
 	           *   00000n0000000Wn$Ph0W0_00wb_n0]
N^j( m m XSMO) 
 
 	           *   @ p a r a m   i _ y 
 
 	           *   00000n0000000Wn$Ph0W0_00wb_n0]
N^j( m m XSMO) 
 
 	           *   @ p a r a m   i _ w 
 
 	           *   00000n0000000Wn$Ph0W0_00wb_n0E^( m m XSMO) 
 
 	           *   @ p a r a m   i _ h 
 
 	           *   00000n0000000Wn$Ph0W0_00wb_n0E^( m m XSMO) 
 
 	           *   @ p a r a m   i _ r e s o l u t i o n 
 
 	           *   1 0000B0_00n0000000$P( n ^ 2 hs) 
 
 	           *   @ p a r a m   o _ r a s t e r 
 
 	           *   QR000
 
 	           *   @ r e t u r n 
 
 	           *   @ t h r o w s   N y A R E x c e p t i o n 
 
 	           * / 
 
                 p u b l i c   b o o l   g e t R g b R e c t P a t t 3 d ( N y A R R e a l i t y S o u r c e   i _ s r c ,   d o u b l e   i _ x ,   d o u b l e   i _ y ,   d o u b l e   i _ w ,   d o u b l e   i _ h ,   i n t   i _ r e s o l u t i o n ,   I N y A R R g b R a s t e r   o _ r a s t e r ) 
 
 	         { 
 
 	 	         D e b u g . A s s e r t ( t h i s . _ t a r g e t _ t y p e = = R T _ K N O W N ) ; 
 
 	 	         / / R E C T ^j0\Ob
 
 	 	         N y A R D o u b l e P o i n t 3 d [ ]   d a 4 = t h i s . _ r e f _ p o o l . _ w k _ d a 3 _ 4 ; 
 
 	 	         d a 4 [ 0 ] . x = i _ x ;         d a 4 [ 0 ] . y = i _ y + i _ h ; d a 4 [ 0 ] . z = 0 ; / / L B 
 
 	 	         d a 4 [ 1 ] . x = i _ x + i _ w ; d a 4 [ 1 ] . y = i _ y + i _ h ; d a 4 [ 1 ] . z = 0 ; / / R B 
 
 	 	         d a 4 [ 2 ] . x = i _ x + i _ w ; d a 4 [ 2 ] . y = i _ y ;         d a 4 [ 2 ] . z = 0 ; / / R T 
 
 	 	         d a 4 [ 3 ] . x = i _ x ;         d a 4 [ 3 ] . y = i _ y ;         d a 4 [ 3 ] . z = 0 ; / / L T 
 
 	 	         r e t u r n   g e t R g b P a t t 3 d ( i _ s r c , d a 4 , n u l l , i _ r e s o l u t i o n , o _ r a s t e r ) ; 
 
 	         } 
 
         	 
 
         } 
 
 } 