mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-06 00:10:15 +02:00
TEdgeSegment v1.
This commit is contained in:
parent
dbb69d8976
commit
0258363287
12 changed files with 340 additions and 2 deletions
17
SpaceCadetPinball/TLine.h
Normal file
17
SpaceCadetPinball/TLine.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue