FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
Point2d.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2024 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "Vector2d.h"
20
21class AcGePoint2d;
22
24{
25public:
26 static Point2d const kNull;
27
28public:
29 Point2d( AcGePoint2d const & ) ;
30 Point2d(double,double) ;
31 Point2d(void) ;
32 Point2d( const Point2d& ) {};
33 //operator AcGePoint2d & (void) ;
34 //operator AcGePoint2d const & (void)const ;
35 bool isEqual( Point2d,double)const ;
36 bool isEqualRect( Point2d,double)const ;
37 bool isValid(void)const ;
39 Point2d & operator=( Point2d const & ) ;
40 Point2d operator*(double)const ;
44 Point2d operator/(double)const ;
46 Vector2d toVector2d(void)const ;
47 double & operator[](int) ;
48 double dist( Point2d)const ;
49 double distRect( Point2d)const ;
50 double distSqrd( Point2d)const ;
51 double length(void)const ;
52 double lengthRect(void)const ;
53 double lengthSqrd(void)const ;
54 double operator%( Vector2d)const ;
55 double operator[](int)const ;
56 static Point2d & cast( AcGePoint2d & );
57 void operator*=(double) ;
62 void operator/=(double) ;
63};
Point2d operator/(double) const
Point2d(AcGePoint2d const &)
void operator+=(Vector2d)
double lengthSqrd(void) const
double lengthRect(void) const
Vector2d operator-(Point2d) const
Point2d(void)
void operator-=(Vector2d)
Point2d operator+(Point2d) const
double dist(Point2d) const
Point2d(const Point2d &)
Definition Point2d.h:32
Point2d operator+(Vector2d) const
Point2d operator*(double) const
double length(void) const
Point2d operator-(Vector2d) const
double operator[](int) const
static Point2d const kNull
Definition Point2d.h:26
double & operator[](int)
bool isValid(void) const
Vector2d toVector2d(void) const
Point2d & operator=(Point2d &&)
void operator-=(Point2d)
static Point2d & cast(AcGePoint2d &)
void operator/=(double)
double distSqrd(Point2d) const
void operator+=(Point2d)
void operator*=(double)
bool isEqual(Point2d, double) const
Point2d & operator=(Point2d const &)
Point2d(double, double)
double operator%(Vector2d) const
double distRect(Point2d) const
bool isEqualRect(Point2d, double) const