15 #ifndef __IPSDKGEOMETRY_VECTOR2D_H__ 16 #define __IPSDKGEOMETRY_VECTOR2D_H__ 18 #include <IPSDKGeometry/Entity/2d/BaseTypedGeometryEntity2d.h> 77 inline void setCoords(
const Point2d<T>& ptEnd);
80 inline void setRho(
const ipReal64 rho);
81 inline void setTheta(
const ipReal64 theta);
134 template <
typename T>
141 template <
typename T>
143 Vector2d::Vector2d(
const Point2dData<T>& ptEnd,
const Point2dData<T>& ptStart)
148 template <
typename T>
150 Vector2d::Vector2d(
const Point2d<T>& ptEnd)
155 template <
typename T>
157 Vector2d::Vector2d(
const Point2dData<T>& ptEnd)
174 template <
typename T>
181 template <
typename T>
263 #endif // __IPSDKGEOMETRY_VECTOR2D_H__ ipReal64 getRho() const
access to point coordinates
Definition: Vector2d.h:210
void setCoords(const ipReal64 rho, const ipReal64 theta)
access to point coordinates
Definition: Vector2d.h:189
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
ipReal64 getSinTheta() const
access to computation intermediate
Definition: Vector2d.h:228
Vector.
Definition: GeometryEntity2dTypes.h:42
Point class associated to cartesian 2d coordinates.
Definition: GeometryEntity2dTypes.h:28
ipReal64 _cosTheta
computation intermediate
Definition: Vector2d.h:126
Utility functions for vectors 2d management.
void setRho(const ipReal64 rho)
access to point coordinates
Definition: Vector2d.h:196
ipReal64 getTheta() const
access to point coordinates
Definition: Vector2d.h:216
IPSDKGEOMETRY_API Point2d< T > operator*(const ipReal64 value, const Point2d< T > &pt)
arithmetic operators on point
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Basic operators used for vector 2d management.
ipReal64 getY() const
retrieve cartesian components of vector
Definition: Vector2d.h:240
static const eEntity2dType::domain g_entity2dType
type associated to entity
Definition: Vector2d.h:43
ipReal64 getNx() const
retrieve unit normed cartesian components of vector
Definition: Vector2d.h:246
Utility functions used to handle angles 2d.
ipReal64 getX() const
retrieve cartesian components of vector
Definition: Vector2d.h:234
eCoordinateSystem2dType
Enumerate describing coordinate system 2d type.
Definition: GeometryEntity2dTypes.h:76
eEntity2dType getEntity2dType() const
method allowing to retrieve entity 2d type
Definition: Vector2d.h:169
eCoordinateSystem2dType getCoordinateSystem2dType() const
method allowing to retrieve coordinate system 2d type
Definition: Vector2d.h:163
ipReal64 _rho
rho coordinate of point
Definition: Vector2d.h:119
Polar coordinate system.
Definition: GeometryEntity2dTypes.h:80
ipReal64 _theta
theta coordinate of point
Definition: Vector2d.h:122
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
Base class for typed 3d geometry entities.
Definition: BaseTypedGeometryEntity2d.h:27
#define IPSDK_DECLARE_GEOMETRY_ENTITY_2D(libraryName, className)
Macro allowing to declare a geometry entity 2d.
Definition: GeometryEntity2dHdrMacros.h:131
Vector class associated to polar 2d coordinates.
Definition: Vector2d.h:32
ipReal64 _sinTheta
computation intermediate
Definition: Vector2d.h:127
static const eCoordinateSystem2dType::domain g_coordinateSystem2dType
coordinate system associated to entity
Definition: Vector2d.h:40
const Point2dData< T > & getCoords() const
access to point coordinates
Definition: Point2d.h:139
boost::numeric::ublas::bounded_vector< ipReal64, 2 > Vector2d
2d vector type associated to library
Definition: LinearAlgebraTypes.h:39
ipReal64 getCosTheta() const
access to computation intermediate
Definition: Vector2d.h:222
eEntity2dType
Enumerate describing entity 2d type.
Definition: GeometryEntity2dTypes.h:38
Lightweight structure used to store Point2d data.
Definition: GeometryEntity2dTypes.h:26
void setTheta(const ipReal64 theta)
access to point coordinates
Definition: Vector2d.h:202
ipReal64 getNy() const
retrieve unit normed cartesian components of vector
Definition: Vector2d.h:252
IPSDK_FORCEINLINE ipReal64 centerModulo(const ipReal64 angle, const ipReal64 modulo)
function allowing to compute centered modulo of an angle
Definition: Angles.h:57