Skip to content

webknossos.geometry.vec3_int

#   class Vec3Int(builtins.tuple):

Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.

If the argument is a tuple, the return value is the same object.

#   Vec3Int()
#  
@staticmethod
def from_xyz(x: int, y: int, z: int) -> webknossos.geometry.vec3_int.Vec3Int:

Use Vec3Int.from_xyz for fast construction.

#   x: int
#   y: int
#   z: int
#   def with_x(self, new_x: int) -> webknossos.geometry.vec3_int.Vec3Int:
#   def with_y(self, new_y: int) -> webknossos.geometry.vec3_int.Vec3Int:
#   def with_z(self, new_z: int) -> webknossos.geometry.vec3_int.Vec3Int:
#   def to_np(self) -> numpy.ndarray:
#   def to_list(self) -> List[int]:
#   def to_tuple(self) -> Tuple[int, int, int]:
#   def contains(self, needle: int) -> bool:
#   def ceildiv( self, other: Union[int, Union[webknossos.geometry.vec3_int.Vec3Int, Tuple[int, int, int], Tuple[int, ...], numpy.ndarray, List[int], Iterable[int]]] ) -> webknossos.geometry.vec3_int.Vec3Int:
#   def pairmax( self, other: Union[int, Union[webknossos.geometry.vec3_int.Vec3Int, Tuple[int, int, int], Tuple[int, ...], numpy.ndarray, List[int], Iterable[int]]] ) -> webknossos.geometry.vec3_int.Vec3Int:
#   def pairmin( self, other: Union[int, Union[webknossos.geometry.vec3_int.Vec3Int, Tuple[int, int, int], Tuple[int, ...], numpy.ndarray, List[int], Iterable[int]]] ) -> webknossos.geometry.vec3_int.Vec3Int:
#   def prod(self) -> int:
#  
@classmethod
def zeros(cls) -> webknossos.geometry.vec3_int.Vec3Int:
#  
@classmethod
def ones(cls) -> webknossos.geometry.vec3_int.Vec3Int:
#  
@classmethod
def full(cls, an_int: int) -> webknossos.geometry.vec3_int.Vec3Int:
Inherited Members
builtins.tuple
index
count
Back to top