UnityMol
0.9.6-875
UnityMol viewer / In developement
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
StructComparer.cs
Go to the documentation of this file.
1
66
using
UnityEngine
;
67
using
System
.Collections;
68
69
//For the sorting of the particle system.
70
public
class
StructComparer
: IComparer
71
{
72
public
int
Compare
(
object
x,
object
y)
73
{
74
if
(!(x is
float
[]) || !(y is
float
[]))
return
0;
75
float
[] a = (
float
[])x;
76
float
[] b = (
float
[])y;
77
78
return
a[0].CompareTo(b[0]);
79
}
80
}
StructComparer
Definition:
StructComparer.cs:70
System
UnityEngine
StructComparer.Compare
int Compare(object x, object y)
Definition:
StructComparer.cs:72
Assets
Scripts
Molecule
View
DisplayAtom
AtomStyle
StructComparer.cs
Generated on Wed Aug 3 2016 15:10:26 for UnityMol by
1.8.11