20 #if !defined(__MITSUBA_CORE_NORMAL_H_)
21 #define __MITSUBA_CORE_NORMAL_H_
69 x = v.
x; y = v.
y; z = v.
z;
Three-dimensional normal data structure.
Definition: normal.h:39
T readElement()
Read an element from the stream (uses partial template specialization to select a method appropriate ...
Definition: stream.h:508
Normal(Float x, Float y, Float z)
Initialize the vector with the specified X and Z components.
Definition: normal.h:52
Normal(const TVector3< Float > &v)
Construct a normal from a vector data structure.
Definition: normal.h:65
T y
Definition: vector.h:455
void operator=(const TVector3< Float > &v)
Assign a vector to this normal.
Definition: normal.h:68
Normal(Stream *stream)
Unserialize a normal from a binary data stream.
Definition: normal.h:58
Normal normalize(const Normal &n)
Definition: normal.h:73
Normal(Float val)
Initialize all components of the the normal with the specified value.
Definition: normal.h:55
T z
Definition: vector.h:455
Parameterizable three-dimensional vector data structure.
Definition: vector.h:450
LengthType length() const
Return the 2-norm of this vector.
Definition: vector.h:571
Normal()
Construct a new normal without initializing it.
Definition: normal.h:49
Abstract seekable stream class.
Definition: stream.h:58
T x
Definition: vector.h:455