class_docstr: A collection of points described by coordinates.
  
  Parameters
  ----------
  coords : array-like
    (*N*, *n*) array with *N* being points and columns their *n*-dimensional coordinates
  affine : :class:`numpy.ndarray`
    Affine transform to be applied to coordinates array
  homogeneous : :class:`bool`
    Indicate whether the provided coordinates are homogeneous,
    i.e., homogeneous 3D coordinates have the form ``(x, y, z, 1)``
class_docstr_tok: ["A","collection","of","points","described","by","coordinates",".","Parameters","--","--","--","--","--","coords",":","array-like","(","*","N","*",",","*","n","*",")","array","with","*","N","*","being","points","and","columns","their","*","n","*","-dimensional","coordinates","affine",":",":","class",":","`","numpy.ndarray","`","Affine","transform","to","be","applied","to","coordinates","array","homogeneous",":",":","class",":","`","bool","`","Indicate","whether","the","provided","coordinates","are","homogeneous",",","i.e.",",","homogeneous","3D","coordinates","have","the","form","``","(","x",",","y",",","z",",","1",")","``"]
docstr: The dimensionality of the space the coordinates are in
docstr_tok: ["The","dimensionality","of","the","space","the","coordinates","are","in"]
code: def dim(self) -> int:
      """The dimensionality of the space the coordinates are in"""
      return self.coordinates.shape[1] - self.homogeneous
  
imports: from __future__ import annotations
  import math
  import typing
  from dataclasses import dataclass, replace
  import numpy
  from nibabel.casting import able_int_type
  from nibabel.fileslice import strided_scalar
  from nibabel.spatialimages import SpatialImage
label_desc: Use image node_id 3 for calling the Pointset obj's underlying member method code with example usage: obj.dim() and returns: unknown