2 * PROJECT: NyARToolkit(Extension)
\r
3 * --------------------------------------------------------------------------------
\r
4 * The NyARToolkit is Java edition ARToolKit class library.
\r
5 * Copyright (C)2008-2009 Ryo Iizuka
\r
7 * This program is free software: you can redistribute it and/or modify
\r
8 * it under the terms of the GNU General Public License as published by
\r
9 * the Free Software Foundation, either version 3 of the License, or
\r
10 * (at your option) any later version.
\r
12 * This program is distributed in the hope that it will be useful,
\r
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
15 * GNU General Public License for more details.
\r
17 * You should have received a copy of the GNU General Public License
\r
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
20 * For further information please contact.
\r
21 * http://nyatla.jp/nyatoolkit/
\r
22 * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>
\r
25 package jp.nyatla.nyartoolkit.nyidmarker.data;
\r
31 public class NyIdMarkerData_RawBit implements INyIdMarkerData
\r
33 public final int[] packet=new int[22];
\r
35 public boolean isEqual(INyIdMarkerData i_target)
\r
37 NyIdMarkerData_RawBit s=(NyIdMarkerData_RawBit)i_target;
\r
38 if(s.length!=this.length){
\r
41 for(int i=s.length-1;i>=0;i--){
\r
42 if(s.packet[i]!=s.packet[i]){
\r
48 public void copyFrom(INyIdMarkerData i_source)
\r
50 final NyIdMarkerData_RawBit s=(NyIdMarkerData_RawBit)i_source;
\r
51 System.arraycopy(s.packet,0,this.packet,0,s.length);
\r
52 this.length=s.length;
\r