201 Math2d::SetVec(normalVector, -directionVector.y, directionVector.x);
219 if (fabsf(normalVector.x) > fabsf(normalVector.y))
270 pPixels =
new int[nPixels];
271 memcpy(pPixels, region.
pPixels, nPixels *
sizeof(
int));
285 ratio = region.
ratio;
305 pPixels =
new int[nPixels];
306 memcpy(pPixels, region.
pPixels, nPixels *
sizeof(
int));
320 ratio = region.
ratio;
CDynamicArrayTemplate< Ellipse2d > CEllipse2dArray
float height
The height of the rectangle.
float width
The width of the rectangle.
Data structure for the representation of a 2D circle.
Vec2d center
The center of the ellipse.
CDynamicArrayTemplate< StraightLine2d > CStraightLine2dArray
StraightLine2d(float angle, float c)
CDynamicArrayTemplate< int > CIntArray
Data structure for the representation of a 3D vector.
Data structure for the representation of a 2D rectangle.
StraightLine2d(const Vec2d &point1, const Vec2d &point2)
float ScalarProduct(const Vec2d &vector1, const Vec2d &vector2)
float angle
The rotiation angle of the ellipse, given in radians.
float radius
The radius of the circle.
Vec2d normalVector
The normalized normal vector of the straight line.
StraightLine2d(const PointPair2d &pointPair)
float radius_y
The radius in vertical direction of the ellipse (vertical refers to when angle = 0).
std::vector< MyRegion > RegionList
Vec2d center
The center of the rectangle.
CDynamicArrayTemplate< Circle2d > CCircle2dArray
CDynamicArrayTemplate< MyRegion > CRegionArray
void NormalizeVec(Vec2d &vec)
float angle
The angle of the rectangle.
void SubtractVecVec(const Vec2d &vector1, const Vec2d &vector2, Vec2d &result)
Data structure for the representation of a 2D ellipse.
MyRegion(const MyRegion ®ion)
Data structure for the representation of a 2D straight line.
float radius_x
The radius in horizontal direction of the ellipse (horizontal refers to when angle = 0)...
Vec2d center
The center of the circle.
float c
The negative scalar product of normalVector and point.
Data structure for the representation of a 2D vector.
void SetVec(Vec2d &vec, float x, float y)
Vec2d directionVector
The normalized direction vector of the straight line.
Vec2d point
An aribtrary point belonging to the straight line.