DOTS Geometry
 
Loading...
Searching...
No Matches
Line2D Struct Reference

Public Member Functions

 Line2D (float2 point, float2 direction)
 

Static Public Member Functions

static float Distance (Line2D line, float2 point, float epsilon=10e-5f)
 
static bool PointIsToTheLeft (Line2D line, float2 point)
 Returns true, if the given point is to the left of the line given its direction.
 

Public Attributes

float2 direction
 
float2 point
 

Member Function Documentation

◆ Distance()

static float Distance ( Line2D line,
float2 point,
float epsilon = 10e-5f )
static
Parameters
line
point
epsilon
Returns
The shortest (euclidean) distance between a 2D line and a 2D point

◆ PointIsToTheLeft()

static bool PointIsToTheLeft ( Line2D line,
float2 point )
static

Returns true, if the given point is to the left of the line given its direction.

Parameters
line
point
Returns