Rise
The Vieneo Province
Loading...
Searching...
No Matches
WindshieldFractures.h File Reference
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <vector>
Include dependency graph for WindshieldFractures.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WindshieldFractures::Point
struct  WindshieldFractures::Segment
struct  WindshieldFractures::Piece

Namespaces

namespace  WindshieldFractures

Typedefs

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

Functions

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

Variables

constexpr int WindshieldFractures::Resolution =512