mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
gobj: Add missing TransformState.make_pos_quat (#1116)
matches to TransformState.make_pos_hpr
This commit is contained in:
parent
8944737844
commit
a196f1adcc
@ -79,6 +79,15 @@ make_pos_hpr(const LVecBase3 &pos, const LVecBase3 &hpr) {
|
|||||||
LVecBase3(1.0, 1.0f, 1.0f));
|
LVecBase3(1.0, 1.0f, 1.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Makes a new TransformState with the specified components.
|
||||||
|
*/
|
||||||
|
INLINE CPT(TransformState) TransformState::
|
||||||
|
make_pos_quat(const LVecBase3 &pos, const LQuaternion &quat) {
|
||||||
|
return make_pos_quat_scale(pos, quat,
|
||||||
|
LVecBase3(1.0, 1.0f, 1.0f));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes a new TransformState with the specified components.
|
* Makes a new TransformState with the specified components.
|
||||||
*/
|
*/
|
||||||
|
@ -76,6 +76,8 @@ PUBLISHED:
|
|||||||
INLINE static CPT(TransformState) make_quat(const LQuaternion &quat);
|
INLINE static CPT(TransformState) make_quat(const LQuaternion &quat);
|
||||||
INLINE static CPT(TransformState) make_pos_hpr(const LVecBase3 &pos,
|
INLINE static CPT(TransformState) make_pos_hpr(const LVecBase3 &pos,
|
||||||
const LVecBase3 &hpr);
|
const LVecBase3 &hpr);
|
||||||
|
INLINE static CPT(TransformState) make_pos_quat(const LVecBase3 &pos,
|
||||||
|
const LQuaternion &quat);
|
||||||
INLINE static CPT(TransformState) make_scale(PN_stdfloat scale);
|
INLINE static CPT(TransformState) make_scale(PN_stdfloat scale);
|
||||||
INLINE static CPT(TransformState) make_scale(const LVecBase3 &scale);
|
INLINE static CPT(TransformState) make_scale(const LVecBase3 &scale);
|
||||||
INLINE static CPT(TransformState) make_shear(const LVecBase3 &shear);
|
INLINE static CPT(TransformState) make_shear(const LVecBase3 &shear);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user