23#ifndef VCL_SPACE_CORE_TEX_COORD_INDEXED_H
24#define VCL_SPACE_CORE_TEX_COORD_INDEXED_H
43template<
typename Scalar>
57 using Base::operator();
58 using Base::operator[];
72 Base(
p), mIndex(index)
79 if constexpr (std::is_same<Scalar, S>::value) {
88 ushort index()
const {
return mIndex; }
90 ushort& index() {
return mIndex; }
92 void set(
const Scalar&
s1,
const Scalar&
s2,
ushort index)
98 void serialize(std::ostream&
os)
const
101 vcl::serialize(
os, mIndex);
104 void deserialize(std::istream& is)
106 Base::deserialize(is);
107 vcl::deserialize(is, mIndex);
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The TexCoordIndexed class represents a texture coordinate with an index.
Definition tex_coord_indexed.h:45
The TexCoord class represents a 2-dimensional texture coordinate containing two scalar values.
Definition tex_coord.h:51