22#ifndef SCRIPT_INTERFACE_SHAPES_SHAPE_HPP
23#define SCRIPT_INTERFACE_SHAPES_SHAPE_HPP
26#include <shapes/Shape.hpp>
42 virtual std::shared_ptr<::Shapes::Shape>
shape()
const = 0;
46 if (
name ==
"calc_distance") {
51 return std::vector<Variant>{
dist,
vec};
54 if (
name ==
"is_inside") {
60 if (
name ==
"rasterize") {
Vector implementation and trait types for boost qvm interoperability.
Bind parameters in the script interface.
std::string_view name() const
Variant do_call_method(std::string const &name, VariantMap const ¶ms) override
virtual std::shared_ptr<::Shapes::Shape > shape() const =0
Return the Shape that we are wrapping.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
std::unordered_map< std::string, Variant > VariantMap
static SteepestDescentParameters params
Currently active steepest descent instance.
Recursive variant implementation.