27 _from_origin.set(0.0, 0.0, 0.0);
28 _from_align.set(1.0, 0.0, 0.0);
29 _from_track.set(1.0, 0.0, 0.0);
30 _to_origin.set(0.0, 0.0, 0.0);
31 _to_align.set(1.0, 0.0, 0.0);
32 _to_track.set(1.0, 0.0, 0.0);
40 set(
const LPoint3d &from_origin,
const LPoint3d &from_align,
41 const LPoint3d &from_track,
42 const LPoint3d &to_origin,
const LPoint3d &to_align,
43 const LPoint3d &to_track) {
44 _from_origin = from_origin;
45 _from_align = from_align;
46 _from_track = from_track;
47 _to_origin = to_origin;
57 const LPoint3d &FltTransformPut::
58 get_from_origin()
const {
65 const LPoint3d &FltTransformPut::
66 get_from_align()
const {
73 const LPoint3d &FltTransformPut::
74 get_from_track()
const {
81 const LPoint3d &FltTransformPut::
82 get_to_origin()
const {
89 const LPoint3d &FltTransformPut::
90 get_to_align()
const {
97 const LPoint3d &FltTransformPut::
98 get_to_track()
const {
105 void FltTransformPut::
108 look_at(r1, _from_align - _from_origin, _from_track - _from_origin, CS_zup_right);
109 look_at(r2, _to_align - _to_origin, _to_track - _to_origin, CS_zup_right);
112 LMatrix4d::translate_mat(-_from_origin) *
115 LMatrix4d::translate_mat(_to_origin);
123 bool FltTransformPut::
125 if (!FltTransformRecord::extract_record(reader)) {
129 nassertr(reader.
get_opcode() == FO_put,
false);
164 bool FltTransformPut::
166 if (!FltTransformRecord::build_record(writer)) {