From 6a635d6a3189ed1bb5c8da2dc32b583ba312ba88 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Tue, 20 Jul 2004 22:34:52 +0000 Subject: [PATCH] one function needs to be a const --- panda/src/pgraph/nodePath.cxx | 4 ++-- panda/src/pgraph/nodePath.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/pgraph/nodePath.cxx b/panda/src/pgraph/nodePath.cxx index 7252ba1bdd..0a64475bda 100644 --- a/panda/src/pgraph/nodePath.cxx +++ b/panda/src/pgraph/nodePath.cxx @@ -1753,7 +1753,7 @@ set_mat(const NodePath &other, const LMatrix4f &mat) { // this node's coordinate system. //////////////////////////////////////////////////////////////////// LPoint3f NodePath:: -get_relative_point(const NodePath &other, const LVecBase3f &point) { +get_relative_point(const NodePath &other, const LVecBase3f &point) const { LPoint3f rel_point = LPoint3f(point) * other.get_mat(*this); return rel_point; } @@ -1766,7 +1766,7 @@ get_relative_point(const NodePath &other, const LVecBase3f &point) { // this node's coordinate system. //////////////////////////////////////////////////////////////////// LVector3f NodePath:: -get_relative_vector(const NodePath &other, const LVecBase3f &vec) { +get_relative_vector(const NodePath &other, const LVecBase3f &vec) const { LVector3f rel_vector = LVector3f(vec) * other.get_mat(*this); return rel_vector; } diff --git a/panda/src/pgraph/nodePath.h b/panda/src/pgraph/nodePath.h index a23c71c177..b1dde11ff1 100644 --- a/panda/src/pgraph/nodePath.h +++ b/panda/src/pgraph/nodePath.h @@ -435,8 +435,8 @@ PUBLISHED: const LMatrix4f &get_mat(const NodePath &other) const; void set_mat(const NodePath &other, const LMatrix4f &mat); - LPoint3f get_relative_point(const NodePath &other, const LVecBase3f &point); - LVector3f get_relative_vector(const NodePath &other, const LVecBase3f &vec); + LPoint3f get_relative_point(const NodePath &other, const LVecBase3f &point) const; + LVector3f get_relative_vector(const NodePath &other, const LVecBase3f &vec) const; INLINE void look_at(const NodePath &other, float x, float y, float z);