All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daxie.joglf.gl.model.collision.CollResultDim Maven / Gradle / Ivy

There is a newer version: 11.7.0
Show newest version
package com.daxie.joglf.gl.model.collision;

import java.util.ArrayList;
import java.util.List;

/**
 * Collection of collision information
 * @author Daba
 *
 */
public class CollResultDim {
	private List coll_results;
	
	public CollResultDim() {
		coll_results=new ArrayList<>();
	}
	
	public void AddCollResult(CollResult coll_result) {
		coll_results.add(coll_result);
	}
	
	public List GetCollResults(){
		return new ArrayList<>(coll_results);
	}
	public int GetHitNum() {
		return coll_results.size();
	}
	
	public CollResult GetCollResult(int index) {
		CollResult coll_result=coll_results.get(index);
		return new CollResult(coll_result);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy