8 #ifndef PXR_BASE_TS_SEGMENT_H
9 #define PXR_BASE_TS_SEGMENT_H
114 template <
typename T>
123 template <
typename T>
135 result.
p0[0] = -result.
p0[0];
136 result.
t0[0] = -result.
t0[0];
137 result.
t1[0] = -result.
t1[0];
138 result.
p1[0] = -result.
p1[0];
152 return (
p0 == rhs.
p0 &&
162 return !(*
this == rhs);
TS_API std::ostream & operator<<(std::ostream &, const Ts_SegmentInterp)
void swap(UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &a, UT::ArraySet< Key, MULTI, MAX_LOAD_FACTOR_256, Clearer, Hash, KeyEqual > &b)
#define PXR_NAMESPACE_OPEN_SCOPE
TS_API double _ComputeDerivative(double u) const
void swap(T &lhs, T &rhs)
bool IsClose(const Ts_Segment &other, const double tolerance) const
**But if you need a result
bool operator==(const Ts_Segment &rhs) const
Compare for equivalence.
Ts_Segment & operator+=(const GfVec2d &delta)
void SetInterp(TsInterpMode interpMode, TsCurveType curveType)
Set interp from a TsInterpMode and TsCurveType.
Ts_SegmentInterp
It is a scoped enum so the use of the Ts_SegmentInterp:: prefix is required.
Ts_Segment operator+(const T &delta) const
Addition operator.
bool GfIsClose(GfColor const &c1, GfColor const &c2, double tolerance)
#define PXR_NAMESPACE_CLOSE_SCOPE
Ts_Segment & operator-=(const GfVec2d &delta)
bool operator!=(const Ts_Segment &rhs) const
Not equivalent.
Ts_Segment operator-() const