CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::LineShape Class Reference

A line from a point to a point. More...

#include <CeresEngine/Mesh/Generator/LineShape.hpp>

Public Types

using Edges = typename Impl::Edges
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 LineShape (const Vector2 &start={0.0, -1.0}, const Vector2 &end={0.0, 1.0}, int segments=8)
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = ParametricShape
 

Private Attributes

Impl mParametricShape
 

Detailed Description

A line from a point to a point.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ LineShape()

CeresEngine::MeshGenerator::LineShape::LineShape ( const Vector2 start = {0.0, -1.0},
const Vector2 end = {0.0, 1.0},
int  segments = 8 
)
Parameters
startStart position
endEnd position
segmentsNumber of subdivisions

Member Function Documentation

◆ edges()

Edges CeresEngine::MeshGenerator::LineShape::edges ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::LineShape::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mParametricShape

Impl CeresEngine::MeshGenerator::LineShape::mParametricShape
private

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