GetPointsWithinSphere() публичный Метод

Get the points within the specific sphere
public GetPointsWithinSphere ( MCvPoint3D32f center, float radius ) : MCvPoint3D32f[]
center MCvPoint3D32f The center of the sphere
radius float The radius of the sphere
Результат MCvPoint3D32f[]
Пример #1
0
        public void TestOctTree()
        {
            MCvPoint3D32f[] pts = new MCvPoint3D32f[]
             {
            new MCvPoint3D32f(1, 2, 3),
            new MCvPoint3D32f(2, 3, 4),
            new MCvPoint3D32f(4, 5, 6),
            new MCvPoint3D32f(2, 2, 2)
             };

             using (Octree tree = new Octree(pts, 10, 10))
             {
            MCvPoint3D32f[] p = tree.GetPointsWithinSphere(new MCvPoint3D32f(0, 0, 0), 5);
            int i = p.Length;
             }
        }