<commit_before>package aerys.minko.render.geometry.primitive
{
	import aerys.minko.render.geometry.Geometry;
	import aerys.minko.render.geometry.stream.IVertexStream;
	import aerys.minko.render.geometry.stream.IndexStream;
	import aerys.minko.render.geometry.stream.StreamUsage;
	import aerys.minko.render.geometry.stream.VertexStream;
	import aerys.minko.render.geometry.stream.format.VertexFormat;
	
	public class ConeGeometry extends Geometry
	{
		public function ConeGeometry(numSegments		: uint	= 10,
									 vertexStreamUsage	: uint	= StreamUsage.STATIC,
									 indexStreamUsage	: uint	= StreamUsage.STATIC)
		{
			super(
				getVertexStreams(numSegments, vertexStreamUsage),
				getIndexStream(numSegments, indexStreamUsage)
			);
		}
		
		private function getVertexStreams(numSegments 		: uint,
										  vertexStreamUsage : uint) : Vector.<IVertexStream>
		{
			var xyz : Vector.<Number>	= new <Number>[0., .5, 0.];
			
			for (var segmentId : uint = 0; segmentId < numSegments; ++segmentId)
			{
				var angle : Number = (Math.PI * 2.) * (segmentId / numSegments);
				
				xyz.push(
					Math.cos(angle),
					-.5,
					Math.sin(angle)
				);
			}<commit_msg>update ConeGeometry to create a cone with a radius = 0.5 instead of radius = 1<commit_after>package aerys.minko.render.geometry.primitive
{
	import aerys.minko.render.geometry.Geometry;
	import aerys.minko.render.geometry.stream.IVertexStream;
	import aerys.minko.render.geometry.stream.IndexStream;
	import aerys.minko.render.geometry.stream.StreamUsage;
	import aerys.minko.render.geometry.stream.VertexStream;
	import aerys.minko.render.geometry.stream.format.VertexFormat;
	
	public class ConeGeometry extends Geometry
	{
		public function ConeGeometry(numSegments		: uint	= 10,
									 vertexStreamUsage	: uint	= StreamUsage.STATIC,
									 indexStreamUsage	: uint	= StreamUsage.STATIC)
		{
			super(
				getVertexStreams(numSegments, vertexStreamUsage),
				getIndexStream(numSegments, indexStreamUsage)
			);
		}
		
		private function getVertexStreams(numSegments 		: uint,
										  vertexStreamUsage : uint) : Vector.<IVertexStream>
		{
			var xyz : Vector.<Number>	= new <Number>[0., .5, 0.];
			
			for (var segmentId : uint = 0; segmentId < numSegments; ++segmentId)
			{
				var angle : Number = (Math.PI * 2.) * (segmentId / numSegments);
				
				xyz.push(Math.cos(angle) * .5, -.5, Math.sin(angle) * .5);
			}
{'fraction_non_alphanumeric': 0.1117109634551495, 'fraction_numerical': 0.00872093023255814, 'mean_word_length': 3.5452830188679245, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2272876', 'n_tokens_mistral': 963, 'n_tokens_neox': 787, 'n_words': 150}