FLImaging 7.11.27.4
FLImagingFoundation/FLSphere3.h
1#pragma once
2
8
9#include "FLFigure3.h"
10#include "FLPoint3.h"
11
13namespace FLImaging
14{
16 namespace Foundation
17 {
23 template<typename T>
24 class FL_EXPORT CFLSphere3 : public CFLFigure3
25 {
26 public:
32
41
47
52 virtual ~CFLSphere3();
53
55
69
71
86 CFLSphere3(double x, double y, double z, double r);
87 CFLSphere3(float x, float y, float z, float r);
88 CFLSphere3(int64_t x, int64_t y, int64_t z, int64_t r);
89 CFLSphere3(int32_t x, int32_t y, int32_t z, int32_t r);
91
93
106 CFLSphere3(const CFLPoint3<float>& flpCenter, double f64Radius);
107 CFLSphere3(const CFLPoint3<double>& flpCenter, double f64Radius);
108 CFLSphere3(const CFLPoint3<float>* pFlpCenter, double f64Radius);
109 CFLSphere3(const CFLPoint3<double>* pFlpCenter, double f64Radius);
111
113
126 CFLSphere3(const Base::TPoint3<float>& tpCenter, double f64Radius);
127 CFLSphere3(const Base::TPoint3<double>& tpCenter, double f64Radius);
128 CFLSphere3(const Base::TPoint3<float>* pTpCenter, double f64Radius);
129 CFLSphere3(const Base::TPoint3<double>* pTpCenter, double f64Radius);
131
133
145 CFLSphere3(const CFLFigure* pFlf);
147
149
162 virtual const CResult Set(const CFLSphere3<float>& flsp);
163 virtual const CResult Set(const CFLSphere3<double>& flsp);
164 virtual const CResult Set(const CFLSphere3<float>* pFlsp);
165 virtual const CResult Set(const CFLSphere3<double>* pFlsp);
167
169
188 virtual const CResult Set(double x, double y, double z, double r);
189 virtual const CResult Set(float x, float y, float z, float r);
190 virtual const CResult Set(int64_t x, int64_t y, int64_t z, int64_t r);
191 virtual const CResult Set(int32_t x, int32_t y, int32_t z, int32_t r);
193
195
212 virtual const CResult Set(const CFLPoint3<float>& flpCenter, double f64Radius);
213 virtual const CResult Set(const CFLPoint3<double>& flpCenter, double f64Radius);
214 virtual const CResult Set(const CFLPoint3<float>* pFlpCenter, double f64Radius);
215 virtual const CResult Set(const CFLPoint3<double>* pFlpCenter, double f64Radius);
217
219
236 virtual const CResult Set(const Base::TPoint3<float>& tpCenter, double f64Radius);
237 virtual const CResult Set(const Base::TPoint3<double>& tpCenter, double f64Radius);
238 virtual const CResult Set(const Base::TPoint3<float>* pTpCenter, double f64Radius);
239 virtual const CResult Set(const Base::TPoint3<double>* pTpCenter, double f64Radius);
241
242 virtual const CResult Set(const CFLFigure& flf) override;
243 virtual const CResult Set(const CFLFigure* pFlf) override;
244
246
269 virtual const CResult Fit(const Base::CFLArray<Base::TPoint3<double>>& flaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
270 virtual const CResult Fit(const Base::CFLArray<Base::TPoint3<float>>& flaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
271 virtual const CResult Fit(const Base::CFLArray<Base::TPoint3<double>>* pFlaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
272 virtual const CResult Fit(const Base::CFLArray<Base::TPoint3<float>>* pFlaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
274
276
299 virtual const CResult Fit(const CFLPointArray3<double>& flpaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
300 virtual const CResult Fit(const CFLPointArray3<float>& flpaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
301 virtual const CResult Fit(const CFLPointArray3<double>* pFlpaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
302 virtual const CResult Fit(const CFLPointArray3<float>* pFlpaPoints, int64_t i64OutlierThresholdCount = 0, double f64OutlierThreshold = 3., Base::CFLArray<int64_t>* pFlaOutlierIndices = nullptr);
304
318 virtual const CResult SetRadius(T tRadius);
319
333 virtual const CResult GetRadius(T& tRadius) const;
334
344 virtual T GetRadius() const;
345
346 virtual void Clear() override;
347
348 virtual EFigureDeclType GetDeclType() const override;
349 virtual EFigureTemplateType GetTemplateType() const override;
350
352 virtual bool IsSpecEqual(const CFLFigure* pFlfRhs, EFigureSpecCompareType eSpecType = EFigureSpecCompareType_Coordinates) const override;
353
354 using CFLFigure::Swap;
355 virtual const CResult Swap(CFLFigure* pFlfRight) override;
356
357 virtual double GetArea() const override;
358 virtual double GetVolume() const override;
359
360 virtual CFLPoint3<double> GetCenter3D() const override;
361
363 virtual const CResult GetCenter(double& x, double& y, double& z) const override;
364
365 virtual CFLPoint3<double> GetCenterOfGravity3D() const override;
366
368 virtual const CResult GetCenterOfGravity(double& x, double& y, double& z) const override;
369
370 virtual CFLPoint3<double> GetCenterOfVertices3D() const override;
371
373 virtual const CResult GetCenterOfVertices(double& x, double& y, double& z) const override;
374
375 using CFLFigure3::Offset;
376 virtual const CResult Offset(double x, double y, double z) override;
377
379 virtual const CResult Multiply(double x, double y, double z) override;
380
381
383
394 bool operator==(const CFLSphere3<float>& flsp) const;
395 bool operator==(const CFLSphere3<double>& flsp) const;
397
399
410 bool operator!=(const CFLSphere3<float>& flsp) const;
411 bool operator!=(const CFLSphere3<double>& flsp) const;
413
415
429
441 const CFLSphere3<T>& operator+=(const double& value);
442
444
460
462
478
490 const CFLSphere3<T>& operator-=(const double& value);
491
493
509
511
527
539 const CFLSphere3<T>& operator*=(const double& value);
540
542
558
560
576
588 const CFLSphere3<T>& operator/=(const double& value);
589
591
607
609
625
637 CFLSphere3<T> operator+(const double& value) const;
638
640
656
658
674
686 CFLSphere3<T> operator-(const double& value) const;
687
689
705
707
723
735 CFLSphere3<T> operator*(const double& value) const;
736
738
754
756
772
784 CFLSphere3<T> operator/(const double& value) const;
785
787
803
805
821
832
846 friend CFLSphere3<T> operator+(const double& value, const CFLSphere3<T>& flsp)
847 {
848 CFLSphere3<T> t(flsp);
849 t += value;
850 return t;
851 }
852
866 friend CFLSphere3<T> operator-(const double& value, const CFLSphere3<T>& flsp)
867 {
868 CFLSphere3<T> t(flsp);
869 t *= -1.;
870 t += value;
871 return t;
872 }
873
887 friend CFLSphere3<T> operator*(const double& value, const CFLSphere3<T>& flsp)
888 {
889 CFLSphere3<T> t(flsp);
890 t *= value;
891 return t;
892 }
893
907 friend CFLSphere3<T> operator/(const double& value, const CFLSphere3<T>& flsp)
908 {
909 CFLSphere3<T> t(flsp);
910 t.flpCenter = value / flsp.flpCenter;
911 return t;
912 }
913
914
916
929 virtual bool Contains(const Base::TPoint3<float>& tp3) const;
930 virtual bool Contains(const Base::TPoint3<double>& tp3) const;
931 virtual bool Contains(const Base::TPoint3<float>* pTp3) const;
932 virtual bool Contains(const Base::TPoint3<double>* pTp3) const;
934
936
949 virtual bool Contains(const CFLPoint3<float>& flp3) const;
950 virtual bool Contains(const CFLPoint3<double>& flp3) const;
951 virtual bool Contains(const CFLPoint3<float>* pFlp3) const;
952 virtual bool Contains(const CFLPoint3<double>* pFlp3) const;
954
956
977 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<float>>& flaVertices, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
978 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<double>>& flaVertices, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
979 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<float>>* pFlaVertices, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
980 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<double>>* pFlaVertices, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
982
984
1007 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<float>>& flaVertices, const Base::CFLArray<int32_t>& flaTargetIndex, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
1008 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<double>>& flaVertices, const Base::CFLArray<int32_t>& flaTargetIndex, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
1009 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<float>>* pFlaVertices, const Base::CFLArray<int32_t>& flaTargetIndex, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
1010 virtual const CResult Contains(const Base::CFLArray<Base::TPoint3<double>>* pFlaVertices, const Base::CFLArray<int32_t>& flaTargetIndex, Base::CFLArray<int32_t>& flaResult, bool bClearResult = true) const;
1012
1013 using CFLFigure3::Rotate;
1014 virtual const CResult Rotate(const CFLGeometry3DQuaternion<float>* pQuat, const CFLPoint3<float>* pFlp3Pivot = nullptr) override;
1015 virtual const CResult Rotate(const CFLGeometry3DQuaternion<double>* pQuat, const CFLPoint3<double>* pFlp3Pivot = nullptr) override;
1016
1017 using CFLFigure3::Scale;
1018 virtual const CResult Scale(double f64PivotX, double f64PivotY, double f64PivotZ, double f64ScaleX, double f64ScaleY, double f64ScaleZ) override;
1019
1021 virtual const CResult Transform(const CMatrix<float>* pMatTransform) override;
1022 virtual const CResult Transform(const CMatrix<double>* pMatTransform) override;
1023
1025 virtual const CResult GetBoundingBox(double& f64MinX, double& f64MinY, double& f64MinZ, double& f64MaxX, double& f64MaxY, double& f64MaxZ) const override;
1026 virtual const CResult GetBoundingBox(float& f32MinX, float& f32MinY, float& f32MinZ, float& f32MaxX, float& f32MaxY, float& f32MaxZ) const override;
1027
1028
1029 protected:
1030 virtual CFLPoint<double> GetCenter() const override;
1031 virtual CFLPoint<double> GetCenterOfGravity() const override;
1032
1033
1034 SupportToDuplicateObject(CFLSphere3<T>, *this);
1035 DeclareGetClassType();
1036 };
1037
1038 typedef CFLSphere3<float> CFLSphere3F;
1039 typedef CFLSphere3<double> CFLSphere3D;
1040 }
1041}
Template type 의 배열 클래스.
Definition FLArray.h:71
3차원 점을 표현하는 간략화된 클래스
Definition FLImagingBase/TPoint3.h:37
FLImaging 모듈의 수행 결과 객체
Definition FLImagingBase/ResultsDef.h:1739
virtual const CResult Offset(double x, double y) override
virtual const CResult Transform(const CMatrixFor3DTransform< float > &matTransform)
변환 행렬을 사용하여 객체를 변환합니다.
virtual const CResult GetCenterOfVertices(double &x, double &y, double &z) const
virtual const CResult Multiply(double x, double y) override
virtual const CResult Scale(double f64Scale) override
객체의 AABB(Axis-Aligned Bounding Box) 중심점을 기준으로 스케일 변환을 적용합니다.
virtual const CResult GetCenter(double &x, double &y) const override
virtual const CResult GetBoundingBox(Base::TPoint3< float > &tp3Min, Base::TPoint3< float > &tp3Max) const
바운딩 박스(AABB)를 얻어옵니다.
virtual const CResult GetCenterOfGravity(double &x, double &y) const override
virtual const CResult Rotate(const CFLGeometry3DQuaternion< float > &quat, const CFLPoint3< float > &flp3Pivot)
지정된 회전 중심점을 기준으로 객체를 쿼터니언을 이용해 회전시킵니다.
도형을 표현하는 클래스의 기저 클래스
Definition FLImagingFoundation/FLFigure.h:27
virtual bool IsSpecEqual(const CFLFigure &flfRhs, EFigureSpecCompareType eSpecType=EFigureSpecCompareType_Coordinates) const
virtual const CResult Swap(CFLFigure &flfRight)
사원수를 표현하는 클래스
Definition FLImagingFoundation/FLGeometry3DQuaternion.h:30
3차원 점을 표현하는 클래스
Definition FLImagingFoundation/FLPoint3.h:40
3차원 점 배열을 표현하는 클래스
Definition FLImagingFoundation/FLPointArray3.h:24
점을 표현하는 클래스
Definition FLImagingFoundation/FLPoint.h:24
구를 표현하는 클래스
Definition FLImagingFoundation/FLSphere3.h:25
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< double > > &flaVertices, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
CFLSphere3< T > operator*(const Base::TPoint3< double > &tpPoint) const
중심좌표의 x, y, z 값에 매개변수를 곱하는 연산자
const CFLSphere3< T > & operator+=(const Base::TPoint3< float > &tpPoint)
이동 연산자[offset]
virtual const CResult GetCenter(double &x, double &y, double &z) const override
CFLSphere3< T > operator/(const Base::TPoint3< double > &tpPoint) const
중심좌표의 x, y, z 값을 매개변수로 나누는 연산자
virtual bool Contains(const Base::TPoint3< double > *pTp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
CFLSphere3< T > operator-(const Base::TPoint3< float > &tpPoint) const
이동 연산자[offset]
virtual CFLPoint< double > GetCenter() const override
CFLSphere3< T > operator*(const CFLPoint3< float > &flpPoint) const
중심좌표의 x, y, z 값에 매개변수를 곱하는 연산자
CFLSphere3< T > operator/(const CFLPoint3< double > &flpPoint) const
중심좌표의 x, y, z 값을 매개변수로 나누는 연산자
virtual const CResult Scale(double f64PivotX, double f64PivotY, double f64PivotZ, double f64ScaleX, double f64ScaleY, double f64ScaleZ) override
지정된 중심점을 기준으로 객체에 대해 스케일 변환을 적용합니다.
friend CFLSphere3< T > operator-(const double &value, const CFLSphere3< T > &flsp)
이동 연산자[offset]
Definition FLImagingFoundation/FLSphere3.h:866
virtual const CResult Fit(const CFLPointArray3< double > &flpaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
bool operator==(const CFLSphere3< double > &flsp) const
비교 연산자
CFLSphere3(const CFLPoint3< double > &flpCenter, double f64Radius)
초기화 생성자
virtual const CResult Transform(const CMatrix< float > *pMatTransform) override
변환 행렬(4x4 또는 3x3)을 사용하여 객체를 변환합니다.
virtual bool Contains(const CFLPoint3< float > *pFlp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
virtual const CResult Rotate(const CFLGeometry3DQuaternion< double > *pQuat, const CFLPoint3< double > *pFlp3Pivot=nullptr) override
객체를 쿼터니언을 이용해 회전시킵니다. 회전 중심점이 nullptr인 경우 객체의 AABB(Axis-Aligned Bounding Box) 중심점을 회전 중심으로 사용합니다.
const CFLSphere3< T > & operator+=(const CFLPoint3< double > &flpPoint)
이동 연산자[offset]
CFLSphere3< T > operator+(const Base::TPoint3< double > &tpPoint) const
이동 연산자[offset]
virtual CFLPoint3< double > GetCenterOfGravity3D() const override
virtual bool Contains(const Base::TPoint3< float > &tp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
virtual const CResult Set(int64_t x, int64_t y, int64_t z, int64_t r)
파라미터 설정 함수
CFLSphere3< T > operator+(const CFLPoint3< double > &flpPoint) const
이동 연산자[offset]
CFLSphere3(const CFLPoint3< double > *pFlpCenter, double f64Radius)
초기화 생성자
virtual const CResult Set(const CFLSphere3< double > *pFlsp)
파라미터 설정 함수
virtual const CResult GetBoundingBox(double &f64MinX, double &f64MinY, double &f64MinZ, double &f64MaxX, double &f64MaxY, double &f64MaxZ) const override
바운딩 박스(AABB)를 얻어옵니다.
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< float > > *pFlaVertices, const Base::CFLArray< int32_t > &flaTargetIndex, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
virtual const CResult Offset(double x, double y, double z) override
CFLSphere3(const CFLFigure *pFlf)
초기화 생성자
CFLSphere3(const Base::TPoint3< float > &tpCenter, double f64Radius)
초기화 생성자
virtual double GetArea() const override
CFLSphere3(double x, double y, double z, double r)
초기화 생성자
CFLSphere3(const CFLSphere3< double > *pRhs)
복사 생성자
virtual CFLPoint< double > GetCenterOfGravity() const override
friend CFLSphere3< T > operator/(const double &value, const CFLSphere3< T > &flsp)
중심좌표의 x, y, z 값을 매개변수로 나누는 연산자
Definition FLImagingFoundation/FLSphere3.h:907
virtual const CResult Set(float x, float y, float z, float r)
파라미터 설정 함수
CFLSphere3(int32_t x, int32_t y, int32_t z, int32_t r)
초기화 생성자
virtual const CResult GetCenterOfGravity(double &x, double &y, double &z) const override
3차원 객체의 무게 중심 좌표를 획득합니다.
CFLSphere3(const CFLFigure &flf)
초기화 생성자
const CFLSphere3< T > & operator/=(const Base::TPoint3< float > &tpPoint)
중심좌표의 x,y,z 값에 매개변수를 나누는 연산자
CFLSphere3< T > operator/(const double &value) const
중심좌표의 x, y, z 값을 매개변수로 나누는 연산자
CFLSphere3(const CFLSphere3< float > *pRhs)
복사 생성자
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< float > > &flaVertices, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
virtual const CResult Fit(const CFLPointArray3< float > &flpaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
virtual bool Contains(const Base::TPoint3< float > *pTp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
CFLSphere3< T > operator-(const double &value) const
이동 연산자[offset]
virtual const CResult Fit(const Base::CFLArray< Base::TPoint3< float > > *pFlaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
virtual const CResult Set(const Base::TPoint3< double > &tpCenter, double f64Radius)
파라미터 설정 함수
virtual const CResult GetBoundingBox(float &f32MinX, float &f32MinY, float &f32MinZ, float &f32MaxX, float &f32MaxY, float &f32MaxZ) const override
바운딩 박스(AABB)를 얻어옵니다.
virtual bool Contains(const Base::TPoint3< double > &tp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
const CFLSphere3< T > & operator*=(const CFLPoint3< double > &flpPoint)
중심좌표의 x,y,z 값에 매개변수를 곱하는 연산자
float radius
Definition FLImagingFoundation/FLSphere3.h:40
CFLSphere3(const Base::TPoint3< double > &tpCenter, double f64Radius)
초기화 생성자
virtual const CResult Swap(CFLFigure *pFlfRight) override
CFLSphere3< T > operator+(const double &value) const
이동 연산자[offset]
virtual const CResult Fit(const Base::CFLArray< Base::TPoint3< double > > *pFlaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
virtual EFigureDeclType GetDeclType() const override
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< float > > &flaVertices, const Base::CFLArray< int32_t > &flaTargetIndex, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
friend CFLSphere3< T > operator+(const double &value, const CFLSphere3< T > &flsp)
이동 연산자[offset]
Definition FLImagingFoundation/FLSphere3.h:846
virtual bool Contains(const CFLPoint3< double > &flp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
const CFLSphere3< T > & operator=(const CFLSphere3< double > &rhs)
대입 연산자
CFLSphere3(const CFLSphere3< float > &rhs)
복사 생성자
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< double > > &flaVertices, const Base::CFLArray< int32_t > &flaTargetIndex, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
CFLSphere3(const Base::TPoint3< float > *pTpCenter, double f64Radius)
초기화 생성자
virtual const CResult Set(const CFLSphere3< float > &flsp)
파라미터 설정 함수
CFLSphere3(int64_t x, int64_t y, int64_t z, int64_t r)
초기화 생성자
virtual const CResult GetCenterOfVertices(double &x, double &y, double &z) const override
CFLSphere3< T > operator+(const Base::TPoint3< float > &tpPoint) const
이동 연산자[offset]
virtual const CResult Set(const Base::TPoint3< float > *pTpCenter, double f64Radius)
파라미터 설정 함수
const CFLSphere3< T > & operator+=(const double &value)
이동 연산자[offset]
virtual const CResult SetRadius(T tRadius)
구의 반지름을 설정하는 함수
virtual bool Contains(const CFLPoint3< float > &flp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
bool operator!=(const CFLSphere3< double > &flsp) const
비교 연산자
virtual const CResult Set(const CFLPoint3< double > &flpCenter, double f64Radius)
파라미터 설정 함수
virtual const CResult Set(const CFLPoint3< double > *pFlpCenter, double f64Radius)
파라미터 설정 함수
virtual const CResult Fit(const CFLPointArray3< double > *pFlpaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
CFLSphere3< T > operator/(const CFLPoint3< float > &flpPoint) const
중심좌표의 x, y, z 값을 매개변수로 나누는 연산자
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< double > > *pFlaVertices, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
bool operator==(const CFLSphere3< float > &flsp) const
비교 연산자
CFLSphere3< T > operator-(const CFLPoint3< float > &flpPoint) const
이동 연산자[offset]
virtual const CResult Transform(const CMatrix< double > *pMatTransform) override
변환 행렬(4x4 또는 3x3)을 사용하여 객체를 변환합니다.
virtual const CResult Set(int32_t x, int32_t y, int32_t z, int32_t r)
파라미터 설정 함수
virtual const CResult Multiply(double x, double y, double z) override
virtual const CResult Set(const CFLSphere3< double > &flsp)
파라미터 설정 함수
const CFLSphere3< T > & operator/=(const double &value)
중심좌표의 x,y,z 값에 매개변수를 나누는 연산자
virtual const CResult Set(const CFLSphere3< float > *pFlsp)
파라미터 설정 함수
CFLSphere3< T > operator-(const Base::TPoint3< double > &tpPoint) const
이동 연산자[offset]
const CFLSphere3< T > & operator/=(const CFLPoint3< double > &flpPoint)
중심좌표의 x,y,z 값에 매개변수를 나누는 연산자
const CFLSphere3< T > & operator-=(const Base::TPoint3< double > &tpPoint)
이동 연산자[offset]
virtual bool Contains(const CFLPoint3< double > *pFlp3) const
정점이 이 객체의 내부에 있는지 여부를 반환합니다.
const CFLSphere3< T > & operator*=(const CFLPoint3< float > &flpPoint)
중심좌표의 x,y,z 값에 매개변수를 곱하는 연산자
virtual double GetVolume() const override
CFLSphere3(const CFLPoint3< float > &flpCenter, double f64Radius)
초기화 생성자
const CFLSphere3< T > & operator=(const CFLSphere3< float > &rhs)
대입 연산자
virtual const CResult Set(const CFLPoint3< float > &flpCenter, double f64Radius)
파라미터 설정 함수
const CFLSphere3< T > & operator-=(const CFLPoint3< float > &flpPoint)
이동 연산자[offset]
virtual CFLPoint3< double > GetCenter3D() const override
const CFLSphere3< T > & operator+=(const CFLPoint3< float > &flpPoint)
이동 연산자[offset]
CFLSphere3< T > operator*(const Base::TPoint3< float > &tpPoint) const
중심좌표의 x, y, z 값에 매개변수를 곱하는 연산자
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< double > > *pFlaVertices, const Base::CFLArray< int32_t > &flaTargetIndex, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
const CFLSphere3< T > & operator-=(const CFLPoint3< double > &flpPoint)
이동 연산자[offset]
virtual T GetRadius() const
반지름을 얻는 함수
virtual const CResult Set(const CFLPoint3< float > *pFlpCenter, double f64Radius)
파라미터 설정 함수
const CFLSphere3< T > & operator-=(const double &value)
이동 연산자[offset]
const CFLSphere3< T > & operator/=(const CFLPoint3< float > &flpPoint)
중심좌표의 x,y,z 값에 매개변수를 나누는 연산자
const CFLSphere3< T > & operator+=(const Base::TPoint3< double > &tpPoint)
이동 연산자[offset]
virtual const CResult Fit(const Base::CFLArray< Base::TPoint3< float > > &flaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
CFLSphere3< T > operator+(const CFLPoint3< float > &flpPoint) const
이동 연산자[offset]
CFLSphere3< T > operator/(const Base::TPoint3< float > &tpPoint) const
중심좌표의 x, y, z 값을 매개변수로 나누는 연산자
virtual const CResult Set(const Base::TPoint3< float > &tpCenter, double f64Radius)
파라미터 설정 함수
bool operator!=(const CFLSphere3< float > &flsp) const
비교 연산자
CFLSphere3< T > operator-() const
해당 객체의 x, y, z 값의 부호를 반전시킨 객체를 반환하는 연산자
virtual const CResult Set(double x, double y, double z, double r)
파라미터 설정 함수
virtual const CResult Set(const CFLFigure &flf) override
const CFLSphere3< T > & operator/=(const Base::TPoint3< double > &tpPoint)
중심좌표의 x,y,z 값에 매개변수를 나누는 연산자
virtual const CResult Set(const CFLFigure *pFlf) override
const CFLSphere3< T > & operator*=(const double &value)
중심좌표의 x,y,z 값에 매개변수를 곱하는 연산자
CFLSphere3(const CFLPoint3< float > *pFlpCenter, double f64Radius)
초기화 생성자
CFLSphere3(float x, float y, float z, float r)
초기화 생성자
virtual EFigureTemplateType GetTemplateType() const override
const CFLSphere3< T > & operator-=(const Base::TPoint3< float > &tpPoint)
이동 연산자[offset]
virtual void Clear() override
모든 내부 변수를 초기화하고 모든 3D 꼭짓점 좌표를 0으로 리셋합니다.
CFLSphere3< T > operator-(const CFLPoint3< double > &flpPoint) const
이동 연산자[offset]
CFLPoint3< float > flpCenter
Definition FLImagingFoundation/FLSphere3.h:31
CFLSphere3< T > operator*(const double &value) const
중심좌표의 x, y, z 값에 매개변수를 곱하는 연산자
virtual const CResult Set(const Base::TPoint3< double > *pTpCenter, double f64Radius)
파라미터 설정 함수
virtual const CResult Fit(const Base::CFLArray< Base::TPoint3< double > > &flaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
CFLSphere3< T > operator*(const CFLPoint3< double > &flpPoint) const
중심좌표의 x, y, z 값에 매개변수를 곱하는 연산자
virtual CFLPoint3< double > GetCenterOfVertices3D() const override
virtual const CResult Contains(const Base::CFLArray< Base::TPoint3< float > > *pFlaVertices, Base::CFLArray< int32_t > &flaResult, bool bClearResult=true) const
이 객체의 내부에 위치하는 정점의 인덱스 배열을 반환합니다.
virtual const CResult Rotate(const CFLGeometry3DQuaternion< float > *pQuat, const CFLPoint3< float > *pFlp3Pivot=nullptr) override
객체를 쿼터니언을 이용해 회전시킵니다. 회전 중심점이 nullptr인 경우 객체의 AABB(Axis-Aligned Bounding Box) 중심점을 회전 중심으로 사용합니다.
CFLSphere3(const CFLSphere3< double > &rhs)
복사 생성자
friend CFLSphere3< T > operator*(const double &value, const CFLSphere3< T > &flsp)
중심좌표의 x, y, z 값에 매개변수를 곱하는 연산자
Definition FLImagingFoundation/FLSphere3.h:887
virtual bool IsSpecEqual(const CFLFigure *pFlfRhs, EFigureSpecCompareType eSpecType=EFigureSpecCompareType_Coordinates) const override
virtual const CResult Fit(const CFLPointArray3< float > *pFlpaPoints, int64_t i64OutlierThresholdCount=0, double f64OutlierThreshold=3., Base::CFLArray< int64_t > *pFlaOutlierIndices=nullptr)
점들과 가장 유사한 형태의 구를 맞춰주는 함수
CFLSphere3(const Base::TPoint3< double > *pTpCenter, double f64Radius)
초기화 생성자
virtual const CResult GetRadius(T &tRadius) const
반지름을 얻습니다.
const CFLSphere3< T > & operator*=(const Base::TPoint3< float > &tpPoint)
중심좌표의 x,y,z 값에 매개변수를 곱하는 연산자
const CFLSphere3< T > & operator*=(const Base::TPoint3< double > &tpPoint)
중심좌표의 x,y,z 값에 매개변수를 곱하는 연산자
행렬을 표현하는 클래스
Definition FLImagingFoundation/Matrix.h:79
Definition FLImagingFoundation/AlgorithmBase.h:16
EFigureDeclType
도형의 타입
Definition FLImagingFoundation/DefinitionsFigure.h:33
EFigureTemplateType
도형의 변수 자료형
Definition FLImagingFoundation/DefinitionsFigure.h:434
EFigureSpecCompareType
Definition FLImagingFoundation/DefinitionsFigure.h:3649
@ EFigureSpecCompareType_Coordinates
Definition FLImagingFoundation/DefinitionsFigure.h:3654