text stringlengths 30 1.67M |
|---|
<s> package net . sf . json . processors ; public interface PropertyNameProcessor { String processPropertyName ( Class beanClass , String name ) ; } </s> |
<s> package net . sf . json . processors ; import net . sf . json . JSONException ; import net . sf . json . JsonConfig ; public interface JsonValueProcessor { Object processArrayValue ( Object value , JsonConfig jsonConfig ) ; Object processObjectValue ( String key , Object value , JsonConfig jsonConfig ) ; } </s> |
<s> package net . sf . json . processors ; import java . util . Set ; public abstract class PropertyNameProcessorMatcher { public static final PropertyNameProcessorMatcher DEFAULT = new DefaultPropertyNameProcessorMatcher ( ) ; public abstract Object getMatch ( Class target , Set set ) ; private static final class Defa... |
<s> package net . sf . json . processors ; import java . util . Set ; public abstract class JsonBeanProcessorMatcher { public static final JsonBeanProcessorMatcher DEFAULT = new DefaultJsonBeanProcessorMatcher ( ) ; public abstract Object getMatch ( Class target , Set set ) ; private static final class DefaultJsonBeanP... |
<s> package net . sf . json . processors ; import net . sf . json . JSONException ; import net . sf . json . JSONObject ; import net . sf . json . JsonConfig ; public interface JsonBeanProcessor { JSONObject processBean ( Object bean , JsonConfig jsonConfig ) ; } </s> |
<s> package net . sf . json . processors ; public interface DefaultValueProcessor { Object getDefaultValue ( Class type ) ; } </s> |
<s> package net . sf . json . processors ; import java . util . Set ; public abstract class DefaultValueProcessorMatcher { public static final DefaultValueProcessorMatcher DEFAULT = new DefaultDefaultValueProcessorMatcher ( ) ; public abstract Object getMatch ( Class target , Set set ) ; private static final class Defa... |
<s> package net . sf . json . processors ; import net . sf . json . JSONArray ; import net . sf . json . JSONNull ; import net . sf . json . util . JSONUtils ; public class DefaultDefaultValueProcessor implements DefaultValueProcessor { public Object getDefaultValue ( Class type ) { if ( JSONUtils . isArray ( type ) ) ... |
<s> package net . sf . json . processors ; import net . sf . json . JsonConfig ; public class JsDateJsonValueProcessor implements JsonValueProcessor { private JsonBeanProcessor processor ; public JsDateJsonValueProcessor ( ) { processor = new JsDateJsonBeanProcessor ( ) ; } public Object processArrayValue ( Object valu... |
<s> package net . sf . json . processors ; import java . util . Set ; public abstract class JsonValueProcessorMatcher { public static final JsonValueProcessorMatcher DEFAULT = new DefaultJsonValueProcessorMatcher ( ) ; public abstract Object getMatch ( Class target , Set set ) ; private static final class DefaultJsonVa... |
<s> package net . sf . json . util ; import java . io . IOException ; import java . io . Writer ; import net . sf . json . JSONException ; public class JSONBuilder { private static final int MAXDEPTH = <NUM_LIT:20> ; private boolean comma ; protected char mode ; private char stack [ ] ; private int top ; protected Writ... |
<s> package net . sf . json . util ; import net . sf . json . JSONArray ; import net . sf . json . JSONException ; import net . sf . json . JSONObject ; public abstract class CycleDetectionStrategy { public static final JSONArray IGNORE_PROPERTY_ARR = new JSONArray ( ) ; public static final JSONObject IGNORE_PROPERTY_O... |
<s> package net . sf . json . util ; public interface PropertyFilter { boolean apply ( Object source , String name , Object value ) ; } </s> |
<s> package net . sf . json . util ; import java . util . Set ; public abstract class PropertyExclusionClassMatcher { public static final PropertyExclusionClassMatcher DEFAULT = new DefaultPropertyExclusionClassMatcher ( ) ; public abstract Object getMatch ( Class target , Set set ) ; private static final class Default... |
<s> package net . sf . json . util ; import net . sf . json . JSONException ; public interface JsonEventListener { void onArrayEnd ( ) ; void onArrayStart ( ) ; void onElementAdded ( int index , Object element ) ; void onError ( JSONException jsone ) ; void onObjectEnd ( ) ; void onObjectStart ( ) ; void onPropertySet ... |
<s> package net . sf . json . util ; import java . lang . reflect . Field ; import java . util . Map ; import net . sf . json . JSONException ; import net . sf . json . JsonConfig ; import org . apache . commons . beanutils . PropertyUtils ; public abstract class PropertySetStrategy { public static final PropertySetStr... |
<s> package net . sf . json . util ; import java . math . BigDecimal ; import java . math . BigInteger ; import java . util . Collection ; import java . util . HashMap ; import java . util . Iterator ; import java . util . List ; import java . util . Map ; import net . sf . ezmorph . MorphUtils ; import net . sf . ezmo... |
<s> package net . sf . json . util ; import java . lang . reflect . Constructor ; import java . lang . reflect . InvocationTargetException ; import net . sf . json . JSONObject ; public abstract class NewBeanInstanceStrategy { public static final NewBeanInstanceStrategy DEFAULT = new DefaultNewBeanInstanceStrategy ( ) ... |
<s> package net . sf . json . util ; import net . sf . json . JSONException ; import org . apache . commons . lang . StringUtils ; public abstract class JavaIdentifierTransformer { public static final JavaIdentifierTransformer CAMEL_CASE = new CamelCaseJavaIdentifierTransformer ( ) ; public static final JavaIdentifierT... |
<s> package net . sf . json . util ; import java . io . StringWriter ; public class JSONStringer extends JSONBuilder { public JSONStringer ( ) { super ( new StringWriter ( ) ) ; } public String toString ( ) { return this . mode == '<CHAR_LIT>' ? this . writer . toString ( ) : null ; } } </s> |
<s> package net . sf . json . util ; import java . util . Iterator ; import net . sf . json . JSON ; import net . sf . json . JSONArray ; import net . sf . json . JSONNull ; import net . sf . json . JSONObject ; public class WebUtils { private static final WebHijackPreventionStrategy DEFAULT_WEB_HIJACK_PREVENTION_STRAT... |
<s> package net . sf . json . util ; import net . sf . json . JSONArray ; import net . sf . json . JSONException ; import net . sf . json . JSONNull ; import net . sf . json . JSONObject ; import net . sf . json . JsonConfig ; import net . sf . json . regexp . RegexpUtils ; import org . apache . commons . lang . math .... |
<s> package net . sf . json . util ; public abstract class WebHijackPreventionStrategy { public static final WebHijackPreventionStrategy COMMENTS = new CommentWebHijackPreventionStrategy ( ) ; public static final WebHijackPreventionStrategy INFINITE_LOOP = new InfiniteLoopWebHijackPreventionStrategy ( ) ; public abstra... |
<s> package net . sf . json ; import java . io . IOException ; import java . io . Writer ; import java . lang . reflect . Array ; import java . util . ArrayList ; import java . util . Collection ; import java . util . ConcurrentModificationException ; import java . util . HashSet ; import java . util . Iterator ; impor... |
<s> package net . sf . json . test ; import java . util . Iterator ; import java . util . SortedSet ; import java . util . TreeSet ; import org . apache . commons . lang . StringUtils ; import junit . framework . Assert ; import net . sf . ezmorph . Morpher ; import net . sf . ezmorph . object . IdentityObjectMorpher ;... |
<s> package net . sf . json . filters ; import net . sf . json . util . PropertyFilter ; public class NotPropertyFilter implements PropertyFilter { private PropertyFilter filter ; public NotPropertyFilter ( PropertyFilter filter ) { this . filter = filter ; } public boolean apply ( Object source , String name , Object ... |
<s> package net . sf . json . filters ; import java . util . ArrayList ; import java . util . Iterator ; import java . util . List ; import net . sf . json . util . PropertyFilter ; public class CompositePropertyFilter implements PropertyFilter { private List filters = new ArrayList ( ) ; public CompositePropertyFilter... |
<s> package net . sf . json . filters ; import net . sf . json . util . PropertyFilter ; public class AndPropertyFilter implements PropertyFilter { private PropertyFilter filter1 ; private PropertyFilter filter2 ; public AndPropertyFilter ( PropertyFilter filter1 , PropertyFilter filter2 ) { this . filter1 = filter1 ; ... |
<s> package net . sf . json . filters ; import net . sf . json . util . PropertyFilter ; public class OrPropertyFilter implements PropertyFilter { private PropertyFilter filter1 ; private PropertyFilter filter2 ; public OrPropertyFilter ( PropertyFilter filter1 , PropertyFilter filter2 ) { this . filter1 = filter1 ; th... |
<s> package net . sf . json . filters ; import net . sf . json . util . PropertyFilter ; public class TruePropertyFilter implements PropertyFilter { public boolean apply ( Object source , String name , Object value ) { return true ; } } </s> |
<s> package net . sf . json . filters ; import net . sf . json . util . PropertyFilter ; public class FalsePropertyFilter implements PropertyFilter { public boolean apply ( Object source , String name , Object value ) { return false ; } } </s> |
<s> package net . sf . json . filters ; import java . util . HashMap ; import java . util . Iterator ; import java . util . Map ; import net . sf . json . util . PropertyFilter ; public abstract class MappingPropertyFilter implements PropertyFilter { private Map filters = new HashMap ( ) ; public MappingPropertyFilter ... |
<s> package net . sf . json ; import java . io . IOException ; import java . io . Writer ; import java . lang . ref . SoftReference ; import java . util . Collection ; import java . util . HashSet ; import java . util . Iterator ; import java . util . Set ; import java . util . TreeSet ; import net . sf . json . util .... |
<s> package net . sf . json ; import java . beans . PropertyDescriptor ; import java . io . IOException ; import java . io . Writer ; import java . lang . reflect . Array ; import java . lang . reflect . Field ; import java . lang . reflect . Modifier ; import java . util . ArrayList ; import java . util . Collection ;... |
<s> package net . sf . json ; import java . io . Serializable ; import net . sf . json . util . JSONUtils ; import org . apache . commons . lang . StringUtils ; import org . apache . commons . lang . builder . EqualsBuilder ; import org . apache . commons . lang . builder . HashCodeBuilder ; public class JSONFunction i... |
<s> package net . sf . json ; import java . util . ArrayList ; import java . util . Collection ; import java . util . Collections ; import java . util . HashMap ; import java . util . HashSet ; import java . util . Iterator ; import java . util . List ; import java . util . Map ; import java . util . Set ; import net .... |
<s> package net . sf . json ; public interface JSONString { public String toJSONString ( ) ; } </s> |
<s> package net . sf . json ; import java . io . IOException ; import java . io . Writer ; public final class JSONNull implements JSON { private static JSONNull instance ; static { instance = new JSONNull ( ) ; } public static JSONNull getInstance ( ) { return instance ; } private JSONNull ( ) { } public boolean equals... |
<s> package net . java . joglutils . lighting ; import javax . media . opengl . * ; import java . awt . Color ; import java . nio . * ; public class Material { GL2 attachedGL ; private int face ; private float [ ] ambient ; private float [ ] diffuse ; private float [ ] specular ; private float shininess ; private float... |
<s> package net . java . joglutils . lighting ; import javax . media . opengl . * ; import java . awt . Color ; import java . util . * ; import java . nio . * ; public class Light { static HashMap < GL , boolean [ ] > assignedLights = new HashMap < GL , boolean [ ] > ( ) ; static HashMap < GL , Boolean > shaderBuiltin ... |
<s> package net . java . joglutils . lighting ; public class LightingException extends RuntimeException { public LightingException ( ) { super ( ) ; } public LightingException ( String s ) { super ( s ) ; } } </s> |
<s> package net . java . joglutils . lighting ; public class LightPanel extends javax . swing . JPanel { public LightPanel ( ) { initComponents ( ) ; lightToPanel ( new Light ( ) ) ; } public LightPanel ( Light l ) { initComponents ( ) ; lightToPanel ( l ) ; } private void initComponents ( ) { jLabel1 = new javax . swi... |
<s> package net . java . joglutils . lighting ; import java . awt . * ; import java . awt . event . * ; import javax . swing . * ; public class ColorButton extends JButton implements ActionListener { public ColorButton ( ) { super ( ) ; this . addActionListener ( this ) ; } public ColorButton ( Action a ) { super ( a )... |
<s> package net . java . joglutils . lighting ; public class MaterialPanel extends javax . swing . JPanel { public MaterialPanel ( ) { initComponents ( ) ; matToPanel ( new Material ( ) ) ; } public MaterialPanel ( Material m ) { initComponents ( ) ; matToPanel ( m ) ; } private void initComponents ( ) { shininessField... |
<s> package net . java . joglutils . jogltext ; import java . awt . * ; import java . awt . geom . * ; import java . awt . font . * ; import java . text . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; public class FontDrawer { public enum NormalMode { NONE , FLAT , AVERAGED } ; priva... |
<s> package net . java . joglutils . jogltext ; import java . awt . Font ; import java . awt . font . FontRenderContext ; import java . awt . font . GlyphVector ; import java . awt . geom . AffineTransform ; import java . awt . geom . GeneralPath ; import java . awt . geom . PathIterator ; import java . awt . geom . Re... |
<s> package net . java . joglutils . jogltext ; public class JogltextException extends RuntimeException { public JogltextException ( ) { super ( ) ; } public JogltextException ( String str ) { super ( str ) ; } } </s> |
<s> package net . java . joglutils ; import java . awt . * ; import java . awt . event . * ; import javax . swing . * ; public class JPanelDialog extends JDialog implements ActionListener { private boolean result = false ; private JButton acceptButton ; private JButton rejectButton ; private JPanel mainPanel ; private ... |
<s> package net . java . joglutils . test3ds ; import net . java . joglutils . ThreeDS . * ; import com . sun . opengl . util . texture . Texture ; import com . sun . opengl . util . texture . TextureCoords ; import com . sun . opengl . util . texture . TextureIO ; import java . io . File ; import java . io . IOExcepti... |
<s> package net . java . joglutils . test3ds ; import com . sun . opengl . util . Animator ; import java . awt . Frame ; import java . awt . event . WindowAdapter ; import java . awt . event . WindowEvent ; import javax . media . opengl . * ; import javax . media . opengl . awt . * ; import javax . media . opengl . glu... |
<s> package net . java . joglutils . model ; import java . io . FileInputStream ; import java . io . IOException ; import java . io . InputStream ; import java . net . URL ; import java . net . MalformedURLException ; public class ResourceRetriever { public static URL getResource ( final String filename ) throws IOExce... |
<s> package net . java . joglutils . model ; import java . util . HashMap ; import net . java . joglutils . model . geometry . Model ; import net . java . joglutils . model . loader . LoaderFactory ; public class ModelFactory { private static HashMap < Object , Model > modelCache = new HashMap < Object , Model > ( ) ; ... |
<s> package net . java . joglutils . model ; public class ModelLoadException extends Exception { public ModelLoadException ( ) { } public ModelLoadException ( String message ) { super ( message ) ; } } </s> |
<s> package net . java . joglutils . model . geometry ; public class Bounds { public static final float LARGE = Float . MAX_VALUE ; public Vec4 min = new Vec4 ( LARGE , LARGE , LARGE ) ; public Vec4 max = new Vec4 ( - LARGE , - LARGE , - LARGE ) ; public Bounds ( ) { } public Bounds ( float x1 , float y1 , float z1 , f... |
<s> package net . java . joglutils . model . geometry ; public class Face { public int vertIndex [ ] ; public int coordIndex [ ] ; public int normalIndex [ ] ; public Face ( int numVertices ) { vertIndex = new int [ numVertices ] ; coordIndex = new int [ numVertices ] ; normalIndex = new int [ numVertices ] ; } public ... |
<s> package net . java . joglutils . model . geometry ; import java . util . Vector ; public class Model { protected Vector < Material > materials = new Vector < Material > ( ) ; protected Vector < Mesh > mesh = new Vector < Mesh > ( ) ; protected String source ; protected boolean renderModel = true ; protected boolean... |
<s> package net . java . joglutils . model . geometry ; public class TexCoord { public float u , v ; public TexCoord ( ) { u = v = <NUM_LIT:0> ; } public TexCoord ( float u , float v ) { this . u = u ; this . v = v ; } } </s> |
<s> package net . java . joglutils . model . geometry ; import java . awt . Color ; public class Material { public String strName ; public String strFile ; public Color ambientColor ; public Color specularColor ; public Color diffuseColor ; public Color emissive = Color . BLACK ; public float shininess ; public float s... |
<s> package net . java . joglutils . model . geometry ; import java . util . Vector ; public class Mesh { public int numOfVerts = <NUM_LIT:0> ; public int numOfFaces = <NUM_LIT:0> ; public int numTexCoords = <NUM_LIT:0> ; public int materialID = <NUM_LIT:0> ; public boolean hasTexture = false ; public String name = nul... |
<s> package net . java . joglutils . model . geometry ; public class Vec4 { public float x , y , z , w ; public Vec4 ( ) { this ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; } public Vec4 ( float _x , float _y , float _z ) { x = _x ; y = _y ; z = _z ; } public Vec4 ( float _x , float _y , float _z , float _w ) { x = _x... |
<s> package net . java . joglutils . model ; import net . java . joglutils . model . geometry . Model ; public interface iModel3DRenderer { public void render ( Object context , Model model ) ; public void debug ( boolean value ) ; } </s> |
<s> package net . java . joglutils . model . examples ; import net . java . joglutils . model . * ; import com . sun . opengl . util . texture . * ; import com . sun . opengl . util . texture . awt . * ; import java . awt . image . BufferedImage ; import java . io . IOException ; import java . net . URL ; import java .... |
<s> package net . java . joglutils . model . examples ; import net . java . joglutils . model . * ; import com . sun . opengl . util . Animator ; import java . awt . Frame ; import java . awt . event . KeyEvent ; import java . awt . event . KeyListener ; import java . awt . event . WindowAdapter ; import java . awt . e... |
<s> package net . java . joglutils . model . loader ; interface MaxConstants { public static final int TYPE_3DS_FILE = <NUM_LIT> ; public static final int TYPE_3DS_VERSION = <NUM_LIT> ; public static final int TYPE_MESH_DATA = <NUM_LIT> ; public static final int TYPE_MESH_VERSION = <NUM_LIT> ; public static final int T... |
<s> package net . java . joglutils . model . loader ; import java . awt . Color ; import java . io . BufferedReader ; import java . io . DataInputStream ; import java . io . FileInputStream ; import java . io . FileNotFoundException ; import java . io . IOException ; import java . io . InputStream ; import java . io . ... |
<s> package net . java . joglutils . model . loader ; import net . java . joglutils . model . ModelLoadException ; import net . java . joglutils . model . geometry . Model ; public interface iLoader { public Model load ( String path ) throws ModelLoadException ; } </s> |
<s> package net . java . joglutils . model . loader ; import net . java . joglutils . model . ModelLoadException ; import net . java . joglutils . model . geometry . Model ; public class LoaderFactory { private static final int FILETYPE_UNKNOWN = - <NUM_LIT:1> ; private static final int FILETYPE_3DS = <NUM_LIT:1> ; pri... |
<s> package net . java . joglutils . model . loader ; import java . awt . Color ; import java . io . DataInputStream ; import java . io . File ; import java . io . IOException ; import java . io . InputStream ; import net . java . joglutils . model . ResourceRetriever ; import net . java . joglutils . model . geometry ... |
<s> package net . java . joglutils . ThreeDS ; public class Chunk { public int id = <NUM_LIT:0> ; public int length = <NUM_LIT:0> ; public int bytesRead = <NUM_LIT:0> ; } </s> |
<s> package net . java . joglutils . ThreeDS ; public class Face { public int vertIndex [ ] = new int [ <NUM_LIT:3> ] ; public int coordIndex [ ] = new int [ <NUM_LIT:3> ] ; } </s> |
<s> package net . java . joglutils . ThreeDS ; public class Vec3 { public float x , y , z ; public Vec3 ( ) { } public Vec3 ( float _x , float _y , float _z ) { x = _x ; y = _y ; z = _z ; } public Vec3 ( Vec3 v ) { x = v . x ; y = v . y ; z = v . z ; } } </s> |
<s> package net . java . joglutils . ThreeDS ; import java . util . Vector ; public class Model3DS { protected Loader3DS loader = new Loader3DS ( ) ; protected Vector < Material > materials = new Vector < Material > ( ) ; protected Vector < Obj > objects = new Vector < Obj > ( ) ; public Model3DS ( ) { } public boolean... |
<s> package net . java . joglutils . ThreeDS ; public class Material { public String strName = new String ( ) ; public String strFile = new String ( ) ; public byte color [ ] = new byte [ <NUM_LIT:3> ] ; public int texureId ; public float uTile ; public float vTile ; public float uOffset ; public float vOffset ; } </s> |
<s> package net . java . joglutils . ThreeDS ; import java . io . DataInputStream ; import java . io . File ; import java . io . FileInputStream ; import java . io . IOException ; public class Loader3DS { private static final int PRIMARY = <NUM_LIT> ; private static final int EDITOR = <NUM_LIT> ; private static final i... |
<s> package net . java . joglutils . ThreeDS ; public class Obj { public int numOfVerts = <NUM_LIT:0> ; public int numOfFaces = <NUM_LIT:0> ; public int numTexVertex = <NUM_LIT:0> ; public int materialID = <NUM_LIT:0> ; public boolean hasTexture = false ; public String strName = null ; public int indices = <NUM_LIT:0> ... |
<s> package net . java . joglutils ; import javax . media . opengl . * ; import javax . media . opengl . awt . * ; import javax . swing . * ; import java . awt . * ; import java . awt . event . * ; import com . sun . opengl . util . Animator ; public class GLJFrame extends JFrame { private GLEventListener listener ; pr... |
<s> package net . java . joglutils . msg . actions ; import java . lang . reflect . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class GLResetAction extends Action { private static State defaults = new State ( ) ; public static State getDefaultState ( ) {... |
<s> package net . java . joglutils . msg . actions ; import java . lang . reflect . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class GLRenderAction extends Action { private st... |
<s> package net . java . joglutils . msg . actions ; import java . awt . Component ; import java . lang . reflect . * ; import java . util . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class RayPickAction ... |
<s> package net . java . joglutils . msg . actions ; import java . lang . reflect . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public abstract class Action { public abstract void apply ( Node node ) ; public abstract State getState ( ) ; public Path getPath ( ... |
<s> package net . java . joglutils . msg . misc ; import net . java . joglutils . msg . math . * ; public class PrimitiveVertex implements Cloneable { private Vec3f coord ; private Vec2f texCoord ; private Vec4f color ; private Vec3f normal ; public PrimitiveVertex ( ) { } public Object clone ( ) { try { PrimitiveVerte... |
<s> package net . java . joglutils . msg . misc ; import java . lang . reflect . * ; import java . util . * ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . nodes . * ; public class ActionTable { private Class < ? extends Action > actionClass ; private Map < Class < ? extends ... |
<s> package net . java . joglutils . msg . misc ; import java . util . * ; import net . java . joglutils . msg . nodes . * ; public class Path extends ArrayList < Node > { public Path copy ( ) { return ( Path ) clone ( ) ; } } </s> |
<s> package net . java . joglutils . msg . misc ; public interface Time { public void update ( ) ; public double time ( ) ; public double deltaT ( ) ; } </s> |
<s> package net . java . joglutils . msg . misc ; public class StateIndex { private int index ; StateIndex ( int index ) { this . index = index ; } int getIndex ( ) { return index ; } } </s> |
<s> package net . java . joglutils . msg . misc ; import javax . media . opengl . * ; import javax . media . opengl . glu . GLU ; import static javax . media . opengl . GL2 . * ; public class Shader { private int id ; public Shader ( String fragmentCode ) throws GLException { GL2 gl = GLU . getCurrentGL ( ) . getGL2 ( ... |
<s> package net . java . joglutils . msg . misc ; import java . util . * ; import net . java . joglutils . msg . elements . * ; public class State { private static int curStateIndex = <NUM_LIT:0> ; private List < Element > elements = new ArrayList < Element > ( ) ; private State defaults ; private Element topElement ; ... |
<s> package net . java . joglutils . msg . misc ; public class PickedPoint extends PrimitiveVertex { private Path path ; public Object clone ( ) { PickedPoint point = ( PickedPoint ) super . clone ( ) ; if ( path != null ) { point . path = path . copy ( ) ; } return point ; } public PickedPoint copy ( ) { return ( Pick... |
<s> package net . java . joglutils . msg . misc ; public class SystemTime implements Time { private static final int DEFAULT_NUM_SMOOTHING_SAMPLES = <NUM_LIT:10> ; private long [ ] samples = new long [ DEFAULT_NUM_SMOOTHING_SAMPLES ] ; private int numSmoothingSamples ; private int curSmoothingSample ; private long base... |
<s> package net . java . joglutils . msg . misc ; public interface TriangleCallback { public void triangleCB ( int triangleIndex , PrimitiveVertex v0 , int i0 , PrimitiveVertex v1 , int i1 , PrimitiveVertex v2 , int i2 ) ; } </s> |
<s> package net . java . joglutils . msg . math ; public class NonSquareMatrixException extends RuntimeException { public NonSquareMatrixException ( ) { super ( ) ; } public NonSquareMatrixException ( String msg ) { super ( msg ) ; } } </s> |
<s> package net . java . joglutils . msg . math ; public class Rotf { private static float EPSILON = <NUM_LIT> ; private float q0 ; private float q1 ; private float q2 ; private float q3 ; public Rotf ( ) { init ( ) ; } public Rotf ( Rotf arg ) { set ( arg ) ; } public Rotf ( Vec3f axis , float angle ) { set ( axis , a... |
<s> package net . java . joglutils . msg . math ; public class Mat2f { private float [ ] data ; public Mat2f ( ) { data = new float [ <NUM_LIT:4> ] ; } public void makeIdent ( ) { for ( int i = <NUM_LIT:0> ; i < <NUM_LIT:2> ; i ++ ) { for ( int j = <NUM_LIT:0> ; j < <NUM_LIT:2> ; j ++ ) { if ( i == j ) { set ( i , j , ... |
<s> package net . java . joglutils . msg . math ; public class SingularMatrixException extends RuntimeException { public SingularMatrixException ( ) { super ( ) ; } public SingularMatrixException ( String msg ) { super ( msg ) ; } } </s> |
<s> package net . java . joglutils . msg . math ; public class Vecf { private float [ ] data ; public Vecf ( int n ) { data = new float [ n ] ; } public Vecf ( Vecf arg ) { data = new float [ arg . data . length ] ; System . arraycopy ( arg . data , <NUM_LIT:0> , data , <NUM_LIT:0> , data . length ) ; } public int leng... |
<s> package net . java . joglutils . msg . math ; public class Box3f { private Vec3f min = new Vec3f ( ) ; private Vec3f max = new Vec3f ( ) ; public Box3f ( ) { } public Box3f ( Vec3f min , Vec3f max ) { setMin ( min ) ; setMax ( max ) ; } public void setMin ( Vec3f min ) { this . min . set ( min ) ; } public Vec3f ge... |
<s> package net . java . joglutils . msg . math ; public class Vec3d { private double x ; private double y ; private double z ; public Vec3d ( ) { } public Vec3d ( Vec3d arg ) { set ( arg ) ; } public Vec3d ( double x , double y , double z ) { set ( x , y , z ) ; } public Vec3d copy ( ) { return new Vec3d ( this ) ; } ... |
<s> package net . java . joglutils . msg . math ; public class Vec4f { private float x ; private float y ; private float z ; private float w ; public Vec4f ( ) { } public Vec4f ( Vec4f arg ) { set ( arg ) ; } public Vec4f ( float x , float y , float z , float w ) { set ( x , y , z , w ) ; } public Vec4f copy ( ) { retu... |
<s> package net . java . joglutils . msg . math ; public class Plane { private Vec3f normal ; private Vec3f point ; float c ; public Plane ( ) { normal = new Vec3f ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:0> ) ; point = new Vec3f ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; recalc ( ) ; } public Plane ( Vec3f normal , V... |
<s> package net . java . joglutils . msg . math ; public class IntersectionPoint { private Vec3f intPt = new Vec3f ( ) ; private float t ; public Vec3f getIntersectionPoint ( ) { return intPt ; } public void setIntersectionPoint ( Vec3f newPt ) { intPt . set ( newPt ) ; } public float getT ( ) { return t ; } public voi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.