| 
    JunkBox_Lib++ (for Windows) 1.10.1
    
   | 
 
#include <Vector.h>

Public Member Functions | |
| Vector (T X=0, T Y=0, T Z=0, double N=0.0, double C=1.0, int D=0) | |
| virtual | ~Vector (void) | 
| T | norm2 (void) | 
| double | norm (void) | 
| Vector< T > | normalize (void) | 
| void | init (double C=1.0) | 
| void | set (T X, T Y=0, T Z=0, double N=0.0, double C=1.0, int D=0) | 
| T & | element1 (void) | 
| T & | element2 (void) | 
| T & | element3 (void) | 
| T & | element (int i) | 
| template<typename R > | |
| Vector< T > & | operator= (const Vector< R > a) | 
Public Attributes | |
| T | x | 
| T | y | 
| T | z | 
| double | n | 
| ノルム   | |
| double | c | 
| 信頼度   | |
| int | d | 
| 汎用   | |
template <typename T=double>> class Vector
3次元ベクトルの定義
      
  | 
  inline | 
Definition at line 67 of file Vector.h.
      
  | 
  inlinevirtual | 
      
  | 
  inline | 
Definition at line 78 of file Vector.h.
Referenced by jbxl::ExtEulerXYZ2RotMatrix(), jbxl::ExtEulerXZY2RotMatrix(), jbxl::ExtEulerYXZ2RotMatrix(), jbxl::ExtEulerYZX2RotMatrix(), jbxl::ExtEulerZXY2RotMatrix(), jbxl::ExtEulerZYX2RotMatrix(), Quaternion< T >::setExtEulerXYZ(), Quaternion< T >::setExtEulerXZY(), Quaternion< T >::setExtEulerYXZ(), Quaternion< T >::setExtEulerYZX(), Quaternion< T >::setExtEulerZXY(), and Quaternion< T >::setExtEulerZYX().

      
  | 
  inline | 
Definition at line 79 of file Vector.h.
Referenced by jbxl::ExtEulerXYZ2RotMatrix(), jbxl::ExtEulerXZY2RotMatrix(), jbxl::ExtEulerYXZ2RotMatrix(), jbxl::ExtEulerYZX2RotMatrix(), jbxl::ExtEulerZXY2RotMatrix(), jbxl::ExtEulerZYX2RotMatrix(), Quaternion< T >::setExtEulerXYZ(), Quaternion< T >::setExtEulerXZY(), Quaternion< T >::setExtEulerYXZ(), Quaternion< T >::setExtEulerYZX(), Quaternion< T >::setExtEulerZXY(), and Quaternion< T >::setExtEulerZYX().

      
  | 
  inline | 
Definition at line 80 of file Vector.h.
Referenced by jbxl::ExtEulerXYZ2RotMatrix(), jbxl::ExtEulerXZY2RotMatrix(), jbxl::ExtEulerYXZ2RotMatrix(), jbxl::ExtEulerYZX2RotMatrix(), jbxl::ExtEulerZXY2RotMatrix(), jbxl::ExtEulerZYX2RotMatrix(), Quaternion< T >::setExtEulerXYZ(), Quaternion< T >::setExtEulerXZY(), Quaternion< T >::setExtEulerYXZ(), Quaternion< T >::setExtEulerYZX(), Quaternion< T >::setExtEulerZXY(), and Quaternion< T >::setExtEulerZYX().

      
  | 
  inline | 
Definition at line 74 of file Vector.h.
Referenced by ContourTriData::init(), TriPolygonData::init(), and AffineTrans< T >::initShift().

      
  | 
  inline | 
Definition at line 71 of file Vector.h.
Referenced by jbxl::CollisionTriContour2D(), BREP_CONTOUR::ComputeDirectRS(), jbxl::MSGraph_Pool(), jbxl::V2VQuaternion(), and jbxl::VectorDist().

      
  | 
  inline | 
Definition at line 70 of file Vector.h.
Referenced by jbxl::FillShortageWings_Near(), and jbxl::operator/().

| Vector< T > normalize | ( | void | ) | 
Definition at line 87 of file Vector.h.
References jbxl::Zero_Eps.
Referenced by BREP_CONTOUR::ComputeNormal(), BREP_VERTEX::ComputeNormal(), ContourTriData::ComputeTriNormal(), TriPolygonData::ComputeTriNormal(), Quaternion< T >::setRotation(), jbxl::SlerpQuaternion(), ContourTriIndex::SurfaceNormal(), ContourTriIndex::SurfaceNormal(), jbxl::ToPola(), jbxl::V2VQuaternion(), and jbxl::VectorAngle().

      
  | 
  inline | 
Definition at line 83 of file Vector.h.
References Vector< T >::c, Vector< T >::d, Vector< T >::n, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
      
  | 
  inline | 
template <typename T> void Vector<T>::set(T X, T Y, T Z, double N)
3次元ベクトルに値をセット.
Definition at line 110 of file Vector.h.
Referenced by MeshFacetNode::generatePlanarUVMap(), CBVHTool::getPosData(), AffineTrans< T >::initScale(), jbxl::MSGraph_Pool(), jbxl::MSGraph_Torus(), jbxl::RotMatrixElements2ExtEulerXYZ(), jbxl::RotMatrixElements2ExtEulerXZY(), jbxl::RotMatrixElements2ExtEulerYXZ(), jbxl::RotMatrixElements2ExtEulerYZX(), jbxl::RotMatrixElements2ExtEulerZXY(), jbxl::RotMatrixElements2ExtEulerZYX(), PCoordinate< T >::set(), TVector< T >::set(), AffineTrans< T >::setScale(), and AffineTrans< T >::setShift().

| double c | 
Definition at line 63 of file Vector.h.
Referenced by jbxl::Cast(), AffineTrans< T >::execInvScale(), AffineTrans< T >::execInvShift(), AffineTrans< T >::execScale(), AffineTrans< T >::execShift(), jbxl::NewellMethod(), jbxl::NewellMethod4(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator/(), jbxl::operator/(), Vector< T >::operator=(), jbxl::operator^(), jbxl::PPPQuaternion(), jbxl::PPVQuaternion(), jbxl::V2VQuaternion(), and jbxl::VPPQuaternion().
| int d | 
Definition at line 64 of file Vector.h.
Referenced by jbxl::Cast(), Quaternion< T >::execInvRotation(), Quaternion< T >::execRotation(), jbxl::operator*(), jbxl::operator*(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator/(), jbxl::operator/(), and Vector< T >::operator=().
| double n | 
Definition at line 62 of file Vector.h.
Referenced by jbxl::Cast(), jbxl::CollisionTriContour2D(), jbxl::CollisionTriContour3D(), CBVHTool::getPosOffset(), jbxl::IsInTriangle(), jbxl::MSGraph_Pool(), jbxl::NewellMethod(), jbxl::NewellMethod4(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator-(), jbxl::operator-(), jbxl::operator/(), Vector< T >::operator=(), jbxl::operator^(), jbxl::ProportionVector(), Quaternion< T >::setRotation(), jbxl::ToPola(), jbxl::TVectorMultiTolerance(), jbxl::V2VQuaternion(), jbxl::VectorAngle(), and jbxl::Vertex2TVector().
| T x | 
Definition at line 58 of file Vector.h.
Referenced by ColladaXML::addController(), AffineTrans< T >::addScale(), ColladaXML::addScene(), AffineTrans< T >::addShift(), GLTFData::addSkeletonNodes(), ColladaXML::addWeightSource(), jbxl::Cast(), jbxl::CompareVertex(), BREP_CONTOUR::ComputeNormal(), BREP_VERTEX::ComputeTolerance(), GLTFData::createBinDataAoS(), GLTFData::createBinDataSeqAoS(), GLTFData::createBinDataSeqSoA(), GLTFData::createBinDataSoA(), jbxl::CreateTriSolidFromSTL(), RBound< T >::cutdown(), jbxl::dgree_circle_MSGraph(), AffineTrans< T >::execInvScale(), AffineTrans< T >::execInvShift(), AffineTrans< T >::execMatrixTrans(), ContourTriData::execScale(), TriPolygonData::execScale(), ContourBaseData::execScale(), AffineTrans< T >::execScale(), TriPolygonData::execShift(), ContourBaseData::execShift(), AffineTrans< T >::execShift(), RBound< T >::fusion(), MeshFacetNode::generatePlanarUVMap(), GLTFData::getFacetMinMax(), CBVHTool::getPosData(), CBVHTool::getPosOffset(), AffineTrans< T >::getScaleX(), AffineTrans< T >::getShiftX(), AffineTrans< T >::isNormal(), jbxl::Local2World(), jbxl::MSGraph_Sphere(), jbxl::NewellMethod(), jbxl::NewellMethod4(), jbxl::object_feature_MSGraph(), jbxl::operator!=(), jbxl::operator!=(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator/(), jbxl::operator/(), jbxl::operator/(), jbxl::operator/(), jbxl::operator<(), Vector< T >::operator=(), jbxl::operator==(), jbxl::operator==(), jbxl::operator^(), jbxl::operator^(), RBound< T >::outofBounds(), OBJData::output_mtl(), OBJData::output_obj(), jbxl::println_FacetAsciiSTL(), jbxl::RotMatrixElements2ExtEulerXYZ(), jbxl::RotMatrixElements2ExtEulerXZY(), jbxl::RotMatrixElements2ExtEulerYXZ(), jbxl::RotMatrixElements2ExtEulerYZX(), jbxl::RotMatrixElements2ExtEulerZXY(), jbxl::RotMatrixElements2ExtEulerZYX(), jbxl::same_vector(), Quaternion< T >::setRotation(), jbxl::ToPola(), jbxl::V2VQuaternion(), jbxl::VectorInvRotation(), jbxl::VectorRotation(), jbxl::Vertex2TVector(), jbxl::wCircle3D(), jbxl::writeSTLFileA(), jbxl::writeSTLFileA(), jbxl::writeSTLFileB(), and jbxl::writeSTLFileB().
| T y | 
Definition at line 59 of file Vector.h.
Referenced by AffineTrans< T >::addScale(), ColladaXML::addScene(), AffineTrans< T >::addShift(), GLTFData::addSkeletonNodes(), ColladaXML::addWeightSource(), jbxl::Cast(), jbxl::CompareVertex(), BREP_CONTOUR::ComputeNormal(), BREP_VERTEX::ComputeTolerance(), GLTFData::createBinDataAoS(), GLTFData::createBinDataSeqAoS(), GLTFData::createBinDataSeqSoA(), GLTFData::createBinDataSoA(), jbxl::CreateTriSolidFromSTL(), RBound< T >::cutdown(), jbxl::dgree_circle_MSGraph(), AffineTrans< T >::execInvScale(), AffineTrans< T >::execInvShift(), AffineTrans< T >::execMatrixTrans(), ContourTriData::execScale(), TriPolygonData::execScale(), ContourBaseData::execScale(), AffineTrans< T >::execScale(), TriPolygonData::execShift(), ContourBaseData::execShift(), AffineTrans< T >::execShift(), RBound< T >::fusion(), MeshFacetNode::generatePlanarUVMap(), GLTFData::getFacetMinMax(), CBVHTool::getPosData(), CBVHTool::getPosOffset(), AffineTrans< T >::getScaleY(), AffineTrans< T >::getShiftY(), AffineTrans< T >::isNormal(), jbxl::Local2World(), jbxl::MSGraph_Sphere(), jbxl::NewellMethod(), jbxl::NewellMethod4(), jbxl::operator!=(), jbxl::operator!=(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator/(), jbxl::operator/(), jbxl::operator/(), jbxl::operator/(), jbxl::operator<(), Vector< T >::operator=(), jbxl::operator==(), jbxl::operator==(), jbxl::operator^(), jbxl::operator^(), RBound< T >::outofBounds(), OBJData::output_mtl(), OBJData::output_obj(), jbxl::println_FacetAsciiSTL(), jbxl::RotMatrixElements2ExtEulerXYZ(), jbxl::RotMatrixElements2ExtEulerXZY(), jbxl::RotMatrixElements2ExtEulerYXZ(), jbxl::RotMatrixElements2ExtEulerYZX(), jbxl::RotMatrixElements2ExtEulerZXY(), jbxl::RotMatrixElements2ExtEulerZYX(), jbxl::same_vector(), Quaternion< T >::setRotation(), jbxl::ToPola(), jbxl::V2VQuaternion(), jbxl::VectorInvRotation(), jbxl::VectorRotation(), jbxl::Vertex2TVector(), jbxl::wCircle3D(), jbxl::writeSTLFileA(), jbxl::writeSTLFileA(), jbxl::writeSTLFileB(), and jbxl::writeSTLFileB().
| T z | 
Definition at line 60 of file Vector.h.
Referenced by AffineTrans< T >::addScale(), ColladaXML::addScene(), AffineTrans< T >::addShift(), GLTFData::addSkeletonNodes(), ColladaXML::addWeightSource(), jbxl::Cast(), jbxl::CompareVertex(), BREP_CONTOUR::ComputeNormal(), BREP_VERTEX::ComputeTolerance(), GLTFData::createBinDataAoS(), GLTFData::createBinDataSeqAoS(), GLTFData::createBinDataSeqSoA(), GLTFData::createBinDataSoA(), jbxl::CreateTriSolidFromSTL(), RBound< T >::cutdown(), jbxl::dgree_circle_MSGraph(), AffineTrans< T >::execInvScale(), AffineTrans< T >::execInvShift(), AffineTrans< T >::execMatrixTrans(), ContourTriData::execScale(), TriPolygonData::execScale(), ContourBaseData::execScale(), AffineTrans< T >::execScale(), TriPolygonData::execShift(), ContourBaseData::execShift(), AffineTrans< T >::execShift(), RBound< T >::fusion(), MeshFacetNode::generatePlanarUVMap(), GLTFData::getFacetMinMax(), CBVHTool::getPosData(), CBVHTool::getPosOffset(), AffineTrans< T >::getScaleZ(), AffineTrans< T >::getShiftZ(), AffineTrans< T >::isNormal(), jbxl::Local2World(), jbxl::MSGraph_Sphere(), jbxl::NewellMethod(), jbxl::NewellMethod4(), jbxl::operator!=(), jbxl::operator!=(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator*(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator+(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator-(), jbxl::operator/(), jbxl::operator/(), jbxl::operator/(), jbxl::operator/(), jbxl::operator<(), Vector< T >::operator=(), jbxl::operator==(), jbxl::operator==(), jbxl::operator^(), jbxl::operator^(), RBound< T >::outofBounds(), OBJData::output_mtl(), OBJData::output_obj(), jbxl::println_FacetAsciiSTL(), jbxl::RotMatrixElements2ExtEulerXYZ(), jbxl::RotMatrixElements2ExtEulerXZY(), jbxl::RotMatrixElements2ExtEulerYXZ(), jbxl::RotMatrixElements2ExtEulerYZX(), jbxl::RotMatrixElements2ExtEulerZXY(), jbxl::RotMatrixElements2ExtEulerZYX(), jbxl::same_vector(), Quaternion< T >::setRotation(), jbxl::ToPola(), jbxl::V2VQuaternion(), jbxl::VectorInvRotation(), jbxl::VectorRotation(), jbxl::Vertex2TVector(), jbxl::wCircle3D(), jbxl::writeSTLFileA(), jbxl::writeSTLFileA(), jbxl::writeSTLFileB(), and jbxl::writeSTLFileB().