|
KiCad PCB EDA Suite
|
Represent a point in x,y coordinates. More...
#include <cadstar_archive_parser.h>
Public Types | |
| typedef VECTOR2_TRAITS< int32_t >::extended_type | extended_type |
| typedef int32_t | coord_type |
Public Member Functions | |
| POINT () | |
| POINT (int aX, int aY) | |
| void | Parse (XNODE *aNode, PARSER_CONTEXT *aContext) override |
| constexpr VECTOR2< U > | operator() () const |
| Cast a vector to another specialized subclass. Beware of rounding issues. | |
| constexpr VECTOR2< U > | operator() () const |
| Cast a vector to another specialized subclass. Beware of rounding issues. | |
| int32_t | EuclideanNorm () const |
| Compute the Euclidean norm of the vector, which is defined as sqrt(x ** 2 + y ** 2). | |
| int32_t | EuclideanNorm () const |
| Compute the Euclidean norm of the vector, which is defined as sqrt(x ** 2 + y ** 2). | |
| constexpr extended_type | SquaredEuclideanNorm () const |
| Compute the squared euclidean norm of the vector, which is defined as (x ** 2 + y ** 2). | |
| constexpr extended_type | SquaredEuclideanNorm () const |
| Compute the squared euclidean norm of the vector, which is defined as (x ** 2 + y ** 2). | |
| constexpr VECTOR2< int32_t > | Perpendicular () const |
| Compute the perpendicular vector. | |
| constexpr VECTOR2< int32_t > | Perpendicular () const |
| Compute the perpendicular vector. | |
| VECTOR2< int32_t > | Resize (int32_t aNewLength) const |
| Return a vector of the same direction, but length specified in aNewLength. | |
| VECTOR2< int32_t > | Resize (int32_t aNewLength) const |
| Return a vector of the same direction, but length specified in aNewLength. | |
| const std::string | Format () const |
| Return the vector formatted as a string. | |
| const std::string | Format () const |
| Return the vector formatted as a string. | |
| constexpr extended_type | Cross (const VECTOR2< int32_t > &aVector) const |
| Compute cross product of self with aVector. | |
| constexpr extended_type | Cross (const VECTOR2< int32_t > &aVector) const |
| Compute cross product of self with aVector. | |
| constexpr extended_type | Dot (const VECTOR2< int32_t > &aVector) const |
| Compute dot product of self with aVector. | |
| constexpr extended_type | Dot (const VECTOR2< int32_t > &aVector) const |
| Compute dot product of self with aVector. | |
| double | Distance (const VECTOR2< extended_type > &aVector) const |
| Compute the distance between two vectors. | |
| double | Distance (const VECTOR2< extended_type > &aVector) const |
| Compute the distance between two vectors. | |
| constexpr extended_type | SquaredDistance (const VECTOR2< int32_t > &aVector) const |
| Compute the squared distance between two vectors. | |
| constexpr extended_type | SquaredDistance (const VECTOR2< int32_t > &aVector) const |
| Compute the squared distance between two vectors. | |
| constexpr VECTOR2< int32_t > & | operator+= (const VECTOR2< int32_t > &aVector) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator+= (const int32_t &aScalar) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator+= (const VECTOR2< int32_t > &aVector) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator+= (const int32_t &aScalar) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator*= (const VECTOR2< int32_t > &aVector) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator*= (const int32_t &aScalar) |
| constexpr VECTOR2< int32_t > & | operator*= (const VECTOR2< int32_t > &aVector) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator*= (const int32_t &aScalar) |
| constexpr VECTOR2< int32_t > & | operator-= (const VECTOR2< int32_t > &aVector) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator-= (const int32_t &aScalar) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator-= (const VECTOR2< int32_t > &aVector) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > & | operator-= (const int32_t &aScalar) |
| Compound assignment operator. | |
| constexpr VECTOR2< int32_t > | operator- () |
| Negate Vector operator. | |
| constexpr VECTOR2< int32_t > | operator- () |
| Negate Vector operator. | |
| constexpr VECTOR2< int32_t > | operator/ (double aFactor) const |
| Division with a factor. | |
| constexpr VECTOR2< int32_t > | operator/ (double aFactor) const |
| Division with a factor. | |
| constexpr bool | operator== (const VECTOR2< int32_t > &aVector) const |
| Equality operator. | |
| constexpr bool | operator== (const VECTOR2< int32_t > &aVector) const |
| Equality operator. | |
| constexpr bool | operator!= (const VECTOR2< int32_t > &aVector) const |
| Not equality operator. | |
| constexpr bool | operator!= (const VECTOR2< int32_t > &aVector) const |
| Not equality operator. | |
| constexpr bool | operator< (const VECTOR2< int32_t > &aVector) const |
| Smaller than operator. | |
| constexpr bool | operator< (const VECTOR2< int32_t > &aVector) const |
| Smaller than operator. | |
| constexpr bool | operator<= (const VECTOR2< int32_t > &aVector) const |
| constexpr bool | operator<= (const VECTOR2< int32_t > &aVector) const |
| constexpr bool | operator> (const VECTOR2< int32_t > &aVector) const |
| Greater than operator. | |
| constexpr bool | operator> (const VECTOR2< int32_t > &aVector) const |
| Greater than operator. | |
| constexpr bool | operator>= (const VECTOR2< int32_t > &aVector) const |
| constexpr bool | operator>= (const VECTOR2< int32_t > &aVector) const |
Public Attributes | |
| int32_t | x |
| int32_t | x |
| int32_t | y |
| int32_t | y |
Static Public Attributes | |
| static constexpr extended_type | ECOORD_MAX |
| static constexpr extended_type | ECOORD_MAX |
| static constexpr extended_type | ECOORD_MIN |
| static constexpr extended_type | ECOORD_MIN |
Represent a point in x,y coordinates.
Definition at line 406 of file cadstar_archive_parser.h.
|
inherited |
Definition at line 70 of file vector2d.h.
|
inherited |
Definition at line 69 of file vector2d.h.
|
inline |
Definition at line 408 of file cadstar_archive_parser.h.
References CADSTAR_ARCHIVE_PARSER::UNDEFINED_VALUE.
|
inline |
Definition at line 409 of file cadstar_archive_parser.h.
|
constexprinherited |
Compute cross product of self with aVector.
|
constexprinherited |
Compute cross product of self with aVector.
Definition at line 198 of file vector2d.h.
|
inherited |
Compute the distance between two vectors.
This is a double precision value because the distance is frequently non-integer.
|
inherited |
Compute the distance between two vectors.
This is a double precision value because the distance is frequently non-integer.
Definition at line 209 of file vector2d.h.
|
constexprinherited |
Compute dot product of self with aVector.
|
constexprinherited |
Compute dot product of self with aVector.
Definition at line 203 of file vector2d.h.
|
inherited |
Compute the Euclidean norm of the vector, which is defined as sqrt(x ** 2 + y ** 2).
It is used to calculate the length of the vector.
|
inherited |
Compute the Euclidean norm of the vector, which is defined as sqrt(x ** 2 + y ** 2).
It is used to calculate the length of the vector.
Definition at line 161 of file vector2d.h.
|
inherited |
Return the vector formatted as a string.
|
inherited |
Return the vector formatted as a string.
Definition at line 193 of file vector2d.h.
|
constexprinherited |
Not equality operator.
|
constexprinherited |
Not equality operator.
Definition at line 248 of file vector2d.h.
Cast a vector to another specialized subclass. Beware of rounding issues.
Definition at line 124 of file vector2d.h.
Cast a vector to another specialized subclass. Beware of rounding issues.
Definition at line 124 of file vector2d.h.
Definition at line 227 of file vector2d.h.
|
constexprinherited |
Compound assignment operator.
|
constexprinherited |
Compound assignment operator.
Definition at line 225 of file vector2d.h.
Compound assignment operator.
Compound assignment operator.
Definition at line 230 of file vector2d.h.
|
constexprinherited |
Compound assignment operator.
|
constexprinherited |
Compound assignment operator.
Definition at line 222 of file vector2d.h.
Negate Vector operator.
Definition at line 239 of file vector2d.h.
Compound assignment operator.
Compound assignment operator.
Definition at line 236 of file vector2d.h.
|
constexprinherited |
Compound assignment operator.
|
constexprinherited |
Compound assignment operator.
Definition at line 233 of file vector2d.h.
Division with a factor.
Division with a factor.
Definition at line 242 of file vector2d.h.
Smaller than operator.
Smaller than operator.
Definition at line 251 of file vector2d.h.
Definition at line 252 of file vector2d.h.
Equality operator.
Equality operator.
Definition at line 245 of file vector2d.h.
Greater than operator.
Greater than operator.
Definition at line 255 of file vector2d.h.
Definition at line 256 of file vector2d.h.
|
overridevirtual |
Implements CADSTAR_ARCHIVE_PARSER::PARSER.
Definition at line 405 of file cadstar_archive_parser.cpp.
References CADSTAR_ARCHIVE_PARSER::GetXmlAttributeIDLong(), VECTOR2< int32_t >::x, and VECTOR2< int32_t >::y.
Referenced by CADSTAR_ARCHIVE_PARSER::ParseAllChildPoints().
Compute the perpendicular vector.
Compute the perpendicular vector.
Definition at line 178 of file vector2d.h.
Return a vector of the same direction, but length specified in aNewLength.
| aNewLength | is the length of the rescaled vector. |
Return a vector of the same direction, but length specified in aNewLength.
| aNewLength | is the length of the rescaled vector. |
Definition at line 186 of file vector2d.h.
|
constexprinherited |
Compute the squared distance between two vectors.
|
constexprinherited |
Compute the squared distance between two vectors.
Definition at line 214 of file vector2d.h.
|
constexprinherited |
Compute the squared euclidean norm of the vector, which is defined as (x ** 2 + y ** 2).
It is used to calculate the length of the vector.
|
constexprinherited |
Compute the squared euclidean norm of the vector, which is defined as (x ** 2 + y ** 2).
It is used to calculate the length of the vector.
Definition at line 170 of file vector2d.h.
|
staticconstexprinherited |
Definition at line 72 of file vector2d.h.
Referenced by PCB_GRID_HELPER::AlignToArc(), PCB_GRID_HELPER::AlignToSegment(), SHAPE_LINE_CHAIN::ClosestPoints(), SHAPE_LINE_CHAIN::ClosestSegments(), SHAPE_LINE_CHAIN::ClosestSegmentsFast(), Collide(), SEG::Collide(), SHAPE_LINE_CHAIN::Collide(), SHAPE_LINE_CHAIN::Collide(), SHAPE_LINE_CHAIN_BASE::Collide(), SHAPE_LINE_CHAIN_BASE::Collide(), SHAPE_RECT::Collide(), editArcCenterKeepEndpoints(), PNS_KICAD_IFACE_BASE::inheritTrackWidth(), RN_NET::NearestBicoloredPair(), SCH_EASYEDAPRO_PARSER::ParseSchematic(), PNS::HELPERS::PickSegment(), PNS::TOOL_BASE::pickSingleItem(), PNS::HELPERS::SnapToNearestTrack(), SEG::SquaredDistance(), SHAPE::SquaredDistance(), SHAPE_LINE_CHAIN_BASE::SquaredDistance(), SHAPE_POLY_SET::SquaredDistance(), SHAPE_POLY_SET::SquaredDistanceToSeg(), and PCB_CONTROL::UpdateMessagePanel().
|
staticconstexprinherited |
Definition at line 72 of file vector2d.h.
|
staticconstexprinherited |
Definition at line 73 of file vector2d.h.
|
staticconstexprinherited |
Definition at line 73 of file vector2d.h.
|
inherited |
Definition at line 75 of file vector2d.h.
Referenced by CADSTAR_ARCHIVE_PARSER::POINT::Parse().
|
inherited |
Definition at line 75 of file vector2d.h.
|
inherited |
Definition at line 75 of file vector2d.h.
Referenced by CADSTAR_ARCHIVE_PARSER::POINT::Parse().
|
inherited |
Definition at line 75 of file vector2d.h.