mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
one function needs to be a const
This commit is contained in:
parent
d582986396
commit
6a635d6a31
@ -1753,7 +1753,7 @@ set_mat(const NodePath &other, const LMatrix4f &mat) {
|
|||||||
// this node's coordinate system.
|
// this node's coordinate system.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
LPoint3f NodePath::
|
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);
|
LPoint3f rel_point = LPoint3f(point) * other.get_mat(*this);
|
||||||
return rel_point;
|
return rel_point;
|
||||||
}
|
}
|
||||||
@ -1766,7 +1766,7 @@ get_relative_point(const NodePath &other, const LVecBase3f &point) {
|
|||||||
// this node's coordinate system.
|
// this node's coordinate system.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
LVector3f NodePath::
|
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);
|
LVector3f rel_vector = LVector3f(vec) * other.get_mat(*this);
|
||||||
return rel_vector;
|
return rel_vector;
|
||||||
}
|
}
|
||||||
|
@ -435,8 +435,8 @@ PUBLISHED:
|
|||||||
const LMatrix4f &get_mat(const NodePath &other) const;
|
const LMatrix4f &get_mat(const NodePath &other) const;
|
||||||
void set_mat(const NodePath &other, const LMatrix4f &mat);
|
void set_mat(const NodePath &other, const LMatrix4f &mat);
|
||||||
|
|
||||||
LPoint3f get_relative_point(const NodePath &other, const LVecBase3f &point);
|
LPoint3f get_relative_point(const NodePath &other, const LVecBase3f &point) const;
|
||||||
LVector3f get_relative_vector(const NodePath &other, const LVecBase3f &vec);
|
LVector3f get_relative_vector(const NodePath &other, const LVecBase3f &vec) const;
|
||||||
|
|
||||||
INLINE void look_at(const NodePath &other,
|
INLINE void look_at(const NodePath &other,
|
||||||
float x, float y, float z);
|
float x, float y, float z);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user