Blender
V3.3
|
#include <VecMat.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Vec () | |
~Vec () | |
template<class U > | |
Vec (const U tab[N]) | |
template<class U > | |
Vec (const std::vector< U > &tab) | |
template<class U > | |
Vec (const Vec< U, N > &v) | |
value_type | operator[] (const unsigned i) const |
value_type & | operator[] (const unsigned i) |
value_type | norm () const |
value_type | squareNorm () const |
Vec< T, N > & | normalize () |
Vec< T, N > & | normalizeSafe () |
Vec< T, N > | operator+ (const Vec< T, N > &v) const |
Vec< T, N > | operator- (const Vec< T, N > &v) const |
Vec< T, N > | operator* (const typename Vec< T, N >::value_type r) const |
Vec< T, N > | operator/ (const typename Vec< T, N >::value_type r) const |
value_type | operator* (const Vec< T, N > &v) const |
template<class U > | |
Vec< T, N > & | operator= (const Vec< U, N > &v) |
template<class U > | |
Vec< T, N > & | operator+= (const Vec< U, N > &v) |
template<class U > | |
Vec< T, N > & | operator-= (const Vec< U, N > &v) |
template<class U > | |
Vec< T, N > & | operator*= (const U r) |
template<class U > | |
Vec< T, N > & | operator/= (const U r) |
bool | operator== (const Vec< T, N > &v) const |
bool | operator!= (const Vec< T, N > &v) const |
bool | operator< (const Vec< T, N > &v) const |
bool | operator> (const Vec< T, N > &v) const |
Static Public Member Functions | |
static unsigned | dim () |
Protected Types | |
enum | { _dim = N } |
Protected Attributes | |
value_type | _coord [N] |
typedef T Freestyle::VecMat::Vec< T, N >::value_type |
|
protected |
|
inline |
Definition at line 45 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, and N.
|
inline |
|
inlineexplicit |
Definition at line 57 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and T.
|
inlineexplicit |
Definition at line 64 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and T.
|
inlinestatic |
|
inline |
Definition at line 95 of file VecMat.h.
References sqrt(), Freestyle::VecMat::Vec< T, N >::squareNorm(), and T.
Referenced by Freestyle::SteerableViewMap::AddFEdge(), Freestyle::Grid::castInfiniteRay(), Freestyle::Grid::castRayToFindFirstIntersection(), Freestyle::Strip::cleanUpSingularities(), Freestyle::Smoother::computeCurvature(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::Strip::computeTexCoordWithTips(), Freestyle::computeVisibility(), Freestyle::Strip::createStrip(), Freestyle::createStroke(), Freestyle::CurveInternal::__point_iterator< Traits >::decrement(), Freestyle::CurveInternal::CurvePointIterator::decrement(), Freestyle::firstIntersectionGridVisitor::examineOccluder(), Freestyle::ViewEdge::getLength2D(), Freestyle::SteerableViewMap::getSVMNumber(), Freestyle::gts_vertex_principal_directions(), Freestyle::CurveInternal::__point_iterator< Traits >::increment(), Freestyle::CurveInternal::CurvePointIterator::increment(), Freestyle::Grid::initRay(), Freestyle::BlenderFileLoader::insertShapeNode(), Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::VecMat::Vec< T, N >::normalizeSafe(), Freestyle::Functions0D::GetViewMapGradientNormF0D::operator()(), Freestyle::Functions0D::VertexOrientation2DF0D::operator()(), Freestyle::Functions0D::VertexOrientation3DF0D::operator()(), Freestyle::Functions0D::Curvature2DAngleF0D::operator()(), Freestyle::FEdgeXDetector::preProcessFace(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), Freestyle::Curve::push_vertex_back(), Freestyle::Curve::push_vertex_front(), Freestyle::Stroke::Resample(), Freestyle::WOEdge::setVecAndAngle(), Freestyle::Smoother::Smoother(), and Freestyle::FEdge::z_discontinuity().
Definition at line 105 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and Freestyle::VecMat::Vec< T, N >::norm().
Referenced by Freestyle::ViewEdgeXBuilder::BuildSmoothFEdge(), Freestyle::CalligraphicShader::CalligraphicShader(), Freestyle::Strip::cleanUpSingularities(), Freestyle::FEdgeXDetector::computeCurvatures(), Freestyle::ViewMapBuilder::computeCusps(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::computeVisibility(), Freestyle::Strip::createStrip(), Freestyle::createStroke(), Freestyle::OGF::NormalCycle::end(), Freestyle::findOccludee(), Freestyle::ViewMapBuilder::FindOccludee(), Freestyle::gts_vertex_principal_directions(), Freestyle::Grid::initInfiniteRay(), Freestyle::Functions0D::VertexOrientation2DF0D::operator()(), Freestyle::Functions0D::VertexOrientation3DF0D::operator()(), Freestyle::Functions0D::Curvature2DAngleF0D::operator()(), Freestyle::Functions0D::Normal2DF0D::operator()(), Freestyle::GeomUtils::rotateVector(), Freestyle::StrokeShaders::BackboneStretcherShader::shade(), Freestyle::StrokeShaders::PolygonalizationShader::shade(), and Freestyle::StrokeShaders::GuidingLinesShader::shade().
Definition at line 114 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and Freestyle::VecMat::Vec< T, N >::norm().
Referenced by Freestyle::Smoother::computeCurvature(), Freestyle::BlenderFileLoader::insertShapeNode(), Freestyle::CalligraphicShader::shade(), and Freestyle::SpatialNoiseShader::shade().
|
inline |
Definition at line 220 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and v.
|
inline |
|
inline |
|
inline |
Definition at line 192 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and r.
|
inline |
|
inline |
Definition at line 200 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and r.
|
inline |
Definition at line 230 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and v.
|
inline |
Definition at line 210 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and v.
|
inline |
Definition at line 246 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord, N, and v.
|
inline |
Definition at line 84 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord.
|
inline |
Definition at line 79 of file VecMat.h.
References Freestyle::VecMat::Vec< T, N >::_coord.
|
inline |
Definition at line 100 of file VecMat.h.
Referenced by Freestyle::angle_from_cotan(), Freestyle::cotan(), Freestyle::gts_vertex_principal_directions(), Freestyle::VecMat::Vec< T, N >::norm(), and Freestyle::OGF::sphere_clip_vector().
|
protected |
Definition at line 263 of file VecMat.h.
Referenced by Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::VecMat::Vec< T, N >::normalizeSafe(), Freestyle::VecMat::Vec< T, N >::operator!=(), Freestyle::VecMat::Vec< T, N >::operator*=(), Freestyle::VecMat::Vec< T, N >::operator+=(), Freestyle::VecMat::Vec< T, N >::operator-=(), Freestyle::VecMat::Vec< T, N >::operator/=(), Freestyle::VecMat::Vec< T, N >::operator<(), Freestyle::VecMat::Vec< T, N >::operator=(), Freestyle::VecMat::Vec< T, N >::operator==(), Freestyle::VecMat::Vec< T, N >::operator>(), Freestyle::VecMat::Vec< T, N >::operator[](), and Freestyle::VecMat::Vec< T, N >::Vec().