15 #include "stTransform.h" 30 _pos.set(0.0f, 0.0f, 0.0f);
35 nassertv(trans->has_components());
36 _pos = trans->get_pos();
39 nassertv(IS_NEARLY_ZERO(hpr[1]) && IS_NEARLY_ZERO(hpr[2]));
42 nassertv(trans->has_uniform_scale());
43 _scale = trans->get_uniform_scale();
52 output(ostream &out)
const {
53 out <<
"STTransform(" << _pos <<
", " << _rotate <<
", " << _scale <<
")";
This is the base class for all three-component vectors and points.
PN_stdfloat get_stdfloat()
Extracts either a 32-bit or a 64-bit floating-point number, according to Datagram::set_stdfloat_doubl...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
void read_datagram(DatagramIterator &source)
Reads the vector from the Datagram using get_stdfloat().
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
void add_stdfloat(PN_stdfloat value)
Adds either a 32-bit or a 64-bit floating-point number, according to set_stdfloat_double().
void write_datagram(Datagram &destination) const
Writes the vector to the Datagram using add_stdfloat().
A class to retrieve the individual data elements previously stored in a Datagram. ...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...