Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::translate_shape_t< shape_t > Class Template Reference

Translates the position of each vertex by given amount. More...

#include <translate_shape.hpp>

Public Types

using edges_t = typename impl_t::edges_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 translate_shape_t (shape_t shape, const gml::dvec2 &delta)
 
edges_t edges () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

template<typename shape_t>
class generator::translate_shape_t< shape_t >

Translates the position of each vertex by given amount.

Definition at line 13 of file translate_shape.hpp.

Member Typedef Documentation

◆ edges_t

template<typename shape_t >
using generator::translate_shape_t< shape_t >::edges_t = typename impl_t::edges_t

Definition at line 31 of file translate_shape.hpp.

◆ vertices_t

template<typename shape_t >
using generator::translate_shape_t< shape_t >::vertices_t = typename impl_t::vertices_t

Definition at line 38 of file translate_shape.hpp.

Constructor & Destructor Documentation

◆ translate_shape_t()

template<typename shape_t >
generator::translate_shape_t< shape_t >::translate_shape_t ( shape_t shape,
const gml::dvec2 & delta )
inline
Parameters
shapeSource data shape.
deltaAmount to increment vertex positions.

Definition at line 22 of file translate_shape.hpp.

Member Function Documentation

◆ edges()

template<typename shape_t >
edges_t generator::translate_shape_t< shape_t >::edges ( ) const
inlinenoexcept

Definition at line 33 of file translate_shape.hpp.

◆ vertices()

template<typename shape_t >
vertices_t generator::translate_shape_t< shape_t >::vertices ( ) const
inlinenoexcept

Definition at line 40 of file translate_shape.hpp.


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