Skip to content

Libs/Optimize/ParticleSystem/itkParticlePointIndexPair.h

Namespaces

Name
itk

Classes

Name
struct itk::ParticlePointIndexPair

Source code

#pragma once

#include "itkPoint.h"
namespace itk {
template <unsigned int VDimension>
struct ParticlePointIndexPair {
  typedef itk::Point<double, VDimension> PointType;
  ParticlePointIndexPair() {}
  ParticlePointIndexPair(const PointType &p, unsigned int i = 0) {
    Point = p;
    Index = i;
  }
  ParticlePointIndexPair(const ParticlePointIndexPair &o) { this->operator=(o); }
  const ParticlePointIndexPair &operator=(const ParticlePointIndexPair &o) {
    Point = o.Point;
    Index = o.Index;
    return *this;
  }
  PointType Point;
  unsigned int Index;
};

}  // namespace itk

Updated on 2022-07-23 at 16:40:07 -0600