22 #if !defined(ON_FPOINT_INC_) 23 #define ON_FPOINT_INC_ 82 operator const float*()
const;
141 float& operator[](
int);
142 float operator[](
int)
const;
143 float& operator[](
unsigned int);
144 float operator[](
unsigned int)
const;
151 bool IsValid()
const;
157 bool IsUnset()
const;
160 void Set(
float,
float);
164 int MaximumCoordinateIndex()
const;
165 double MaximumCoordinate()
const;
167 ON_DEPRECATED_MSG(
"Use p = ON_2fPoint::Origin;")
181 bool IsNotZero() const;
200 ON__UINT32 DataCRC(ON__UINT32 current_remainder) const;
204 ON_2fPoint operator*(
int, const ON_2fPoint&);
207 ON_2fPoint operator*(
float, const ON_2fPoint&);
210 ON_2dPoint operator*(
double, const ON_2fPoint&);
223 ON_3fPoint() =
default;
224 ~ON_3fPoint() =
default;
225 ON_3fPoint(
const ON_3fPoint&) =
default;
226 ON_3fPoint& operator=(
const ON_3fPoint&) =
default;
229 static const ON_3fPoint Origin;
230 static const ON_3fPoint NanPoint;
238 const ON_3fPoint& lhs,
239 const ON_3fPoint& rhs
242 explicit ON_3fPoint(
float x,
float y,
float z);
243 explicit ON_3fPoint(
const ON_2fPoint& );
247 explicit ON_3fPoint(
const float*);
254 explicit ON_3fPoint(
const double*);
258 operator const float*()
const;
261 ON_3fPoint& operator=(
const ON_2fPoint&);
265 ON_3fPoint& operator=(
const float*);
272 ON_3fPoint& operator=(
const double*);
274 ON_3fPoint& operator*=(
float);
275 ON_3fPoint& operator/=(
float);
279 ON_3fPoint operator*(
int)
const;
280 ON_3fPoint operator/(
int)
const;
281 ON_3fPoint operator*(
float)
const;
282 ON_3fPoint operator/(
float)
const;
286 ON_3fPoint operator+(
const ON_3fPoint&)
const;
290 ON_3fPoint operator+(
const ON_2fPoint&)
const;
304 float operator*(
const ON_3fPoint&)
const;
307 bool operator==(
const ON_3fPoint&)
const;
308 bool operator!=(
const ON_3fPoint&)
const;
311 bool operator<=(
const ON_3fPoint&)
const;
312 bool operator>=(
const ON_3fPoint&)
const;
313 bool operator<(
const ON_3fPoint&)
const;
314 bool operator>(
const ON_3fPoint&)
const;
317 float& operator[](
int);
318 float operator[](
int)
const;
319 float& operator[](
unsigned int);
320 float operator[](
unsigned int)
const;
327 bool IsValid()
const;
333 bool IsUnset()
const;
336 void Set(
float,
float,
float);
338 double DistanceTo(
const ON_3fPoint& )
const;
340 int MaximumCoordinateIndex()
const;
341 double MaximumCoordinate()
const;
342 double Fuzz(
double = ON_ZERO_TOLERANCE )
const;
344 ON_DEPRECATED_MSG(
"Use p = ON_3fPoint::Origin;")
358 bool IsNotZero() const;
379 ON__UINT32 DataCRC(ON__UINT32 current_remainder) const;
383 ON_3fPoint operator*(
int, const ON_3fPoint&);
386 ON_3fPoint operator*(
float, const ON_3fPoint&);
389 ON_3dPoint operator*(
double, const ON_3fPoint&);
408 float EuclideanX()
const;
418 float EuclideanY()
const;
428 float EuclideanZ()
const;
432 ON_4fPoint() =
default;
433 ~ON_4fPoint() =
default;
434 ON_4fPoint(
const ON_4fPoint&) =
default;
435 ON_4fPoint& operator=(
const ON_4fPoint&) =
default;
438 static const ON_4fPoint Zero;
439 static const ON_4fPoint Nan;
451 static int ProjectiveCompare(
452 const ON_4fPoint& lhs,
453 const ON_4fPoint& rhs
461 static int DictionaryCompare(
462 const ON_4fPoint& lhs,
463 const ON_4fPoint& rhs
470 bool operator==(
const ON_4fPoint& rhs)
const;
476 bool operator!=(
const ON_4fPoint& rhs)
const;
478 explicit ON_4fPoint(
float x,
float y,
float z,
float w);
480 ON_4fPoint(
const ON_2fPoint& );
481 ON_4fPoint(
const ON_3fPoint& );
483 ON_4fPoint(
const ON_3fVector& );
486 explicit ON_4fPoint(
const float*);
494 explicit ON_4fPoint(
const double*);
498 operator const float*()
const;
501 ON_4fPoint& operator=(
const ON_2fPoint&);
502 ON_4fPoint& operator=(
const ON_3fPoint&);
504 ON_4fPoint& operator=(
const ON_3fVector&);
505 ON_4fPoint& operator=(
const float*);
512 ON_4fPoint& operator=(
const double*);
514 ON_4fPoint& operator*=(
float);
515 ON_4fPoint& operator/=(
float);
516 ON_4fPoint& operator+=(
const ON_4fPoint&);
517 ON_4fPoint& operator-=(
const ON_4fPoint&);
519 ON_4fPoint operator*(
float)
const;
520 ON_4fPoint operator/(
float)
const;
521 ON_4fPoint operator+(
const ON_4fPoint&)
const;
522 ON_4fPoint operator-(
const ON_4fPoint&)
const;
526 float& operator[](
int);
527 float operator[](
int)
const;
528 float& operator[](
unsigned int);
529 float operator[](
unsigned int)
const;
536 bool IsValid()
const;
542 bool IsUnset()
const;
545 void Set(
float,
float,
float,
float);
547 int MaximumCoordinateIndex()
const;
548 double MaximumCoordinate()
const;
558 ON__UINT32 DataCRC(ON__UINT32 current_remainder)
const;
623 operator const float*()
const;
645 float operator*(
const ON_2fPoint&)
const;
656 ON_2fPoint operator+(
const ON_2fPoint&)
const;
658 ON_2fPoint operator-(
const ON_2fPoint&)
const;
660 ON_3fPoint operator+(
const ON_3fPoint&)
const;
662 ON_3fPoint operator-(
const ON_3fPoint&)
const;
683 float& operator[](
int);
684 float operator[](
int)
const;
685 float& operator[](
unsigned int);
686 float operator[](
unsigned int)
const;
693 bool IsValid()
const;
699 bool IsUnset()
const;
702 void Set(
float,
float);
704 int MaximumCoordinateIndex()
const;
705 double MaximumCoordinate()
const;
707 double LengthSquared()
const;
708 double Length()
const;
729 double = ON_DEFAULT_ANGLE_TOLERANCE
732 bool IsPerpendicularTo(
737 double = ON_DEFAULT_ANGLE_TOLERANCE
740 ON_DEPRECATED_MSG(
"Use p = ON_2fVector::ZeroVector;")
743 ON_DEPRECATED_MSG(
"Use v = -v;")
748 bool IsUnitVector()
const;
768 double = ON_ZERO_TOLERANCE
779 bool IsNotZero()
const;
782 bool PerpendicularTo(
788 bool PerpendicularTo(
793 ON__UINT32 DataCRC(ON__UINT32 current_remainder)
const;
826 ON_IsOrthogonalFrame(
833 ON_IsOrthonormalFrame(
904 operator const float*()
const;
926 float operator*(
const ON_3fPoint&)
const;
937 ON_3fPoint operator+(
const ON_3fPoint&)
const;
939 ON_3fPoint operator-(
const ON_3fPoint&)
const;
941 ON_3fPoint operator+(
const ON_2fPoint&)
const;
943 ON_3fPoint operator-(
const ON_2fPoint&)
const;
964 float& operator[](
int);
965 float operator[](
int)
const;
966 float& operator[](
unsigned int);
967 float operator[](
unsigned int)
const;
974 bool IsValid()
const;
980 bool IsUnset()
const;
983 void Set(
float,
float,
float);
985 int MaximumCoordinateIndex()
const;
986 double MaximumCoordinate()
const;
988 double LengthSquared()
const;
989 double Length()
const;
991 bool IsPerpendicularTo(
996 double = ON_DEFAULT_ANGLE_TOLERANCE
999 double Fuzz(
double = ON_ZERO_TOLERANCE )
const;
1001 ON_DEPRECATED_MSG(
"Use p = ON_3fVector::ZeroVector;")
1004 ON_DEPRECATED_MSG(
"Use v = -v;")
1009 bool IsUnitVector()
const;
1030 double = ON_ZERO_TOLERANCE
1035 bool IsZero()
const;
1041 bool IsNotZero()
const;
1044 bool PerpendicularTo(
1066 ON__UINT32 DataCRC(ON__UINT32 current_remainder)
const;
1123 ON_IsOrthogonalFrame(
1131 ON_IsOrthonormalFrame(
1139 ON_IsRightHandFrame(
Definition: opennurbs_fpoint.h:556
Definition: opennurbs_fpoint.h:832
static const ON_2fPoint Origin
Definition: opennurbs_fpoint.h:51
Definition: opennurbs_fpoint.h:211
Definition: opennurbs_point.h:277
float y
Definition: opennurbs_fpoint.h:41
static const ON_2fPoint NanPoint
Definition: opennurbs_fpoint.h:52
Definition: opennurbs_point.h:648
Definition: opennurbs_fpoint.h:38
Definition: opennurbs_point.h:460
Definition: opennurbs_fpoint.h:385
Definition: opennurbs_point.h:839
Definition: opennurbs_point.h:1152