Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
Segment Struct Reference

#include <definitions.hpp>

Public Member Functions

 Segment ()
 
 Segment (const b2Segment &segment)
 
 operator b2Segment () const
 
template<class Archive >
void serialize (Archive &ar)
 

Public Attributes

Vector2 point1
 
Vector2 point2
 

Detailed Description

Segment

The segment class defines two points, each at the end of the segment.

Constructor & Destructor Documentation

◆ Segment() [1/2]

Segment::Segment ( )

◆ Segment() [2/2]

Segment::Segment ( const b2Segment &  segment)
explicit

Member Function Documentation

◆ operator b2Segment()

Segment::operator b2Segment ( ) const

◆ serialize()

template<class Archive >
void Segment::serialize ( Archive &  ar)
inline

Member Data Documentation

◆ point1

Vector2 Segment::point1

◆ point2

Vector2 Segment::point2

The documentation for this struct was generated from the following files: