Skip to content

Commit 074189f

Browse files
committed
Rename Point3::isNull() and Vector3::isNull() to isZero()
This renames the Point3::isNull() and Vector3::isNull() methods to isZero().
1 parent 80d2809 commit 074189f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/chemkit/point3.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ cdef extern from "chemkit/point3.h" namespace "chemkit":
4545
double x()
4646
double y()
4747
double z()
48-
bool isNull()
48+
bool isZero()

src/chemkit/point3.pxi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cdef class Point3:
6363

6464
return self._point3.z()
6565

66-
def isNull(self):
67-
"""Returns True if the point is null (i.e. (0, 0, 0))."""
66+
def isZero(self):
67+
"""Returns True if the point is zero (i.e. (0, 0, 0))."""
6868

69-
return self._point3.isNull()
69+
return self._point3.isZero()

src/chemkit/vector3.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ cdef extern from "chemkit/vector3.h" namespace "chemkit":
4545
double x()
4646
double y()
4747
double z()
48-
bool isNull()
48+
bool isZero()

src/chemkit/vector3.pxi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cdef class Vector3:
6363

6464
return self._vector3.z()
6565

66-
def isNull(self):
67-
"""Returns True if the vector is null (i.e. (0, 0, 0))."""
66+
def isZero(self):
67+
"""Returns True if the vector is zero (i.e. (0, 0, 0))."""
6868

69-
return self._vector3.isNull()
69+
return self._vector3.isZero()

0 commit comments

Comments
 (0)