tahoma2d/toonz/sources/stdfx/igs_maxmin_lens_matrix.h

44 lines
1.6 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef igs_maxmin_lens_matrix_h
#define igs_maxmin_lens_matrix_h
#include <vector>
2016-06-15 18:43:10 +12:00
namespace igs {
namespace maxmin {
const int diameter_from_outer_radius(const double outer_radius);
const double outer_radius_from_radius(const double radius,
const double smooth_outer_range);
2016-03-19 06:57:51 +13:00
const int alloc_and_shape_lens_matrix(
2016-06-15 18:43:10 +12:00
const double radius // 0=<
,
const double outer_radius, const int polygon_number // =2
,
const double roll_degree // 0<= ... <=360
,
std::vector<int> &lens_offsets, std::vector<int> &lens_sizes,
std::vector<std::vector<double>> &lens_ratio);
2016-03-19 06:57:51 +13:00
/*
2016-06-15 18:43:10 +12:00
lens_offsetsとlens_sizesで影響範囲を表わすmatrixを表わす
radiusは影響円の半径
matrix()(lens_offsets.size())
(radius)
1(1,3,5,6)
2016-03-19 06:57:51 +13:00
*/
2016-06-15 18:43:10 +12:00
const void reshape_lens_matrix(const double radius // 0<=
,
const double outer_radius,
const int odd_diameter,
const int polygon_number // =2
,
const double roll_degree // 0<= ... <=360
,
std::vector<int> &lens_offsets,
std::vector<int> &lens_sizes,
std::vector<std::vector<double>> &lens_ratio);
2016-03-19 06:57:51 +13:00
}
}
#endif /* !igs_maxmin_lens_matrix_h */