#include <Domain.h>
Inheritance diagram for Go::Domain:
Public Member Functions | |
virtual | ~Domain () |
virtual destructor ensures safe inheritance | |
virtual bool | isInDomain (const Array< double, 2 > &point, double tolerance) const=0 |
check whether a given parameter pair is located inside the domain | |
virtual bool | isOnBoundary (const Array< double, 2 > &point, double tolerance) const=0 |
check whether a given parameter pair is located on the domain boundary | |
virtual void | closestInDomain (const Array< double, 2 > &point, Array< double, 2 > &clo_pt, double tolerance) const=0 |
Find the (u, v) point in the Domain that is closest (using Euclidean distance in R^2) to a given (u, v) point. | |
virtual void | closestOnBoundary (const Array< double, 2 > &point, Array< double, 2 > &clo_bd_pt, double tolerance) const=0 |
Find the (u, v) point on the boundary of the Domain that is closest (using Euclidean distance in R^2) to a given (u, v) point. |
Definition at line 49 of file Domain.h.
virtual bool Go::Domain::isInDomain | ( | const Array< double, 2 > & | point, | |
double | tolerance | |||
) | const [pure virtual] |
check whether a given parameter pair is located inside the domain
point | the (u,v)-pair that we want to test. | |
tolerance | the tolerance used (ruling what to do when 'point' is located very near the edge of the domain). |
Implemented in Go::CurveBoundedDomain, and Go::RectDomain.
virtual bool Go::Domain::isOnBoundary | ( | const Array< double, 2 > & | point, | |
double | tolerance | |||
) | const [pure virtual] |
check whether a given parameter pair is located on the domain boundary
point | the (u,v)-pair that we want to test | |
tolerance | the tolerance used (how 'far' from the boundary our (u,v) pair can be and still be considered 'on' the boundary. |
Implemented in Go::CurveBoundedDomain, and Go::RectDomain.
virtual void Go::Domain::closestInDomain | ( | const Array< double, 2 > & | point, | |
Array< double, 2 > & | clo_pt, | |||
double | tolerance | |||
) | const [pure virtual] |
Find the (u, v) point in the Domain that is closest (using Euclidean distance in R^2) to a given (u, v) point.
If the given point is in the domain, then the answer is obviously the same point.
point | the (u,v) parameter pair that we want to find the closest parameter pair to inside Domain. | |
clo_pt | the resulting closest parameter point. | |
tolerance | the tolerance used in defining whether the given point is already inside the domain. |
Implemented in Go::CurveBoundedDomain, and Go::RectDomain.
virtual void Go::Domain::closestOnBoundary | ( | const Array< double, 2 > & | point, | |
Array< double, 2 > & | clo_bd_pt, | |||
double | tolerance | |||
) | const [pure virtual] |
Find the (u, v) point on the boundary of the Domain that is closest (using Euclidean distance in R^2) to a given (u, v) point.
If the point is already considered on the boundary, then the answer is obviously the same point.
point | the (u,v) parameter pair that we want to find to closest parameter pair to on the Domain border. | |
clo_bd_pt | the resulting closest border point. | |
tolerance | the tolerance used in defining whether the given point is |
Implemented in Go::CurveBoundedDomain, and Go::RectDomain.