Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
Slasher.Collision.Arc Struct Reference
Inheritance diagram for Slasher.Collision.Arc:
Inheritance graph
Collaboration diagram for Slasher.Collision.Arc:
Collaboration graph

Public Member Functions

 Arc (float radius, Vector2 position, Vector2 direction, float angle)
 
Parameters
directionDirection vector of the middle of the arc
angleAngle of the arc in degrees

 
bool CollidesWith (Circle target)
 

Public Attributes

float Radius
 
Vector2 Position
 
Vector2 Direction
 
float Range
 

Private Member Functions

Vector2 GetDegreesAsDir (float angle)
 
float GetDirAsDegrees (Vector2 dir)
 
bool GetIntersectionAngleRange (Circle target, out float angle1, out float angle2)
 
Parameters
angle1In degrees, where 0 degrees is straight up, and increasing goes clockwise.

 

Constructor & Destructor Documentation

◆ Arc()

Slasher.Collision.Arc.Arc ( float radius,
Vector2 position,
Vector2 direction,
float angle )

Parameters
directionDirection vector of the middle of the arc
angleAngle of the arc in degrees

Member Function Documentation

◆ CollidesWith()

bool Slasher.Collision.Arc.CollidesWith ( Circle target)

Implements Slasher.Collision.ICollideWithCircle.

Here is the call graph for this function:

◆ GetDegreesAsDir()

Vector2 Slasher.Collision.Arc.GetDegreesAsDir ( float angle)
private

◆ GetDirAsDegrees()

float Slasher.Collision.Arc.GetDirAsDegrees ( Vector2 dir)
private

◆ GetIntersectionAngleRange()

bool Slasher.Collision.Arc.GetIntersectionAngleRange ( Circle target,
out float angle1,
out float angle2 )
private

Parameters
angle1In degrees, where 0 degrees is straight up, and increasing goes clockwise.

This point is always counterclockwise to the next point.

Parameters
angle2In degrees, where 0 degrees is straight up, and increasing goes clockwise. This point is always clockwise from the previous point.

Member Data Documentation

◆ Direction

Vector2 Slasher.Collision.Arc.Direction

◆ Position

Vector2 Slasher.Collision.Arc.Position

◆ Radius

float Slasher.Collision.Arc.Radius

◆ Range

float Slasher.Collision.Arc.Range

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