C# Class CSharpGL.ArrayHelper

Helper class for array.
Mostrar archivo Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
PrintArray ( this array, string seperator = " " ) : string

Print elements in format 'element, element, element, ...'

PrintVectors ( this array, int components = 3, string componentSeparator = ",", string vectorSeparator = "\r\n" ) : string

Print elements in format 'x,y,z; x,y,z; ...'

Method Details

PrintArray() public static method

Print elements in format 'element, element, element, ...'
public static PrintArray ( this array, string seperator = " " ) : string
array this
seperator string
return string

PrintVectors() public static method

Print elements in format 'x,y,z; x,y,z; ...'
public static PrintVectors ( this array, int components = 3, string componentSeparator = ",", string vectorSeparator = "\r\n" ) : string
array this
components int 2, 3, or 4.
componentSeparator string
vectorSeparator string
return string