1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-06 00:10:15 +02:00

TEdgeSegment v1.

This commit is contained in:
oz 2020-11-21 18:14:40 +03:00
parent dbb69d8976
commit 0258363287
12 changed files with 340 additions and 2 deletions

17
SpaceCadetPinball/TLine.h Normal file
View file

@ -0,0 +1,17 @@
#pragma once
#include "maths.h"
#include "TEdgeSegment.h"
class TLine :
public TEdgeSegment
{
public:
line_type Line;
vector_type Start;
vector_type End;
TLine(TCollisionComponent* collCmp, char* flagPtr, unsigned int visualFlag, float x0, float y0, float x1, float y1);
TLine(TCollisionComponent* collCmp, char* flagPtr, unsigned int visualFlag, struct vector_type* start,
struct vector_type* end);
void Offset(float offset);
double FindCollisionDistance(ray_type* ray) override;
};