本文整理汇总了C#中Vector.get方法的典型用法代码示例。如果您正苦于以下问题:C# Vector.get方法的具体用法?C# Vector.get怎么用?C# Vector.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vector
的用法示例。
在下文中一共展示了Vector.get方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setUtausingers
public void setUtausingers( Vector<SingerConfig> value )
{
m_utau_singers.clear();
for ( int i = 0; i < value.size(); i++ ) {
m_utau_singers.add( (SingerConfig)value.get( i ).clone() );
}
UpdateUtausingerList();
}
示例2: addXRIDescriptors
} // addXRIDescriptors()
/*
****************************************************************************
* addXRIDescriptors()
****************************************************************************
*/ /**
* Adds the specified XRI Descriptors to the chain
*/
public void addXRIDescriptors(Vector oDescriptors)
{
for (int i = 0; i < oDescriptors.size(); i++)
{
addXRIDescriptor((XRD) oDescriptors.get(i));
}
} // addXRIDescriptors()
示例3: Point
public Point(Vector v)
{
this.c[0] = v.get(0); this.c[1] = v.get(1); this.c[2] = v.get(2);
}
示例4: min
protected int min(Vector vector)
{
int min = vector.get(0);
for (int i = 0; i < vector.size(); i++)
{
if (min > vector.get(i))
{
min = vector.get(i);
}
}
return min;
}
示例5: sort
protected Vector sort(Vector vector)
{
int[] res = new int[vector.size()];
for (int i = 0; i < res.Length; i++)
{
res[i] = vector.get(i);
}
Array.Sort(res);
Vector sortedVector = new Vector(res.Length);
for (int j = 0; j < sortedVector.size(); j++)
{
sortedVector.set(j, res[j]);
}
return sortedVector;
}
示例6: merge_events
private Vector<MidiEvent> merge_events( Vector<MidiEvent> x0, Vector<MidiEvent> y0 )
{
Vector<MidiEvent> ret = new Vector<MidiEvent>();
for ( int i = 0; i < x0.size(); i++ ) {
ret.add( x0.get( i ) );
}
for ( int i = 0; i < y0.size(); i++ ) {
ret.add( y0.get( i ) );
}
boolean changed = true;
while ( changed ) {
changed = false;
for ( int i = 0; i < ret.size() - 1; i++ ) {
if ( ret.get( i ).CompareTo( ret.get( i + 1 ) ) > 0 ) {
MidiEvent m = ret.get( i );
ret.set( i, ret.get( i + 1 ) );
ret.set( i + 1, m );
changed = true;
}
}
}
return ret;
}