2020-11-21 16:14:40 +01:00
|
|
|
#pragma once
|
|
|
|
#include "maths.h"
|
|
|
|
#include "TEdgeSegment.h"
|
|
|
|
|
|
|
|
class TLine :
|
|
|
|
public TEdgeSegment
|
|
|
|
{
|
|
|
|
public:
|
2021-10-02 17:58:54 +02:00
|
|
|
line_type Line{};
|
2020-11-28 12:39:12 +01:00
|
|
|
float X0, Y0, X1, Y1;
|
2021-01-28 16:01:26 +01:00
|
|
|
TLine(TCollisionComponent* collCmp, char* activeFlag, unsigned int collisionGroup, float x0, float y0, float x1, float y1);
|
|
|
|
TLine(TCollisionComponent* collCmp, char* activeFlag, unsigned int collisionGroup, vector_type* start, vector_type* end);
|
2020-11-21 16:14:40 +01:00
|
|
|
void Offset(float offset);
|
2021-01-07 17:00:38 +01:00
|
|
|
float FindCollisionDistance(ray_type* ray) override;
|
|
|
|
void EdgeCollision(TBall* ball, float coef) override;
|
|
|
|
void place_in_grid() override;
|
2020-11-21 16:14:40 +01:00
|
|
|
};
|