Rise
The Vieneo Province
Loading...
Searching...
No Matches
WindshieldFractures Namespace Reference

Classes

struct  Point
struct  Segment
struct  Piece

Typedefs

using Texel = std::array<float,4>

Functions

Point operator+ (Point a, Point b)
Point operator- (Point a, Point b)
Point operator* (Point a, float s)
float Dot (Point a, Point b)
float Cross (Point a, Point b)
float Area (const Piece &p)
std::vector< Segment > Network (float width, float height, uint32_t seed)
float SegmentDistanceSquared (Point p, Segment line)
std::vector< Texel > Field (const std::vector< Segment > &cuts, float width, float height, int condition)

Variables

constexpr int Resolution =512

Typedef Documentation

◆ Texel

using WindshieldFractures::Texel = std::array<float,4>

Definition at line 83 of file WindshieldFractures.h.

Function Documentation

◆ Area()

float WindshieldFractures::Area ( const Piece & p)
inline

Definition at line 21 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cross()

float WindshieldFractures::Cross ( Point a,
Point b )
inline

Definition at line 18 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dot()

float WindshieldFractures::Dot ( Point a,
Point b )
inline

Definition at line 17 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Field()

std::vector< Texel > WindshieldFractures::Field ( const std::vector< Segment > & cuts,
float width,
float height,
int condition )
inline

Definition at line 84 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Network()

std::vector< Segment > WindshieldFractures::Network ( float width,
float height,
uint32_t seed )
inline

Definition at line 27 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*()

Point WindshieldFractures::operator* ( Point a,
float s )
inline

Definition at line 16 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator+()

Point WindshieldFractures::operator+ ( Point a,
Point b )
inline

Definition at line 14 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator-()

Point WindshieldFractures::operator- ( Point a,
Point b )
inline

Definition at line 15 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SegmentDistanceSquared()

float WindshieldFractures::SegmentDistanceSquared ( Point p,
Segment line )
inline

Definition at line 76 of file WindshieldFractures.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ Resolution

int WindshieldFractures::Resolution =512
constexpr

Definition at line 82 of file WindshieldFractures.h.