24#ifndef GRAPHICS_GSPLINE_H_
25#define GRAPHICS_GSPLINE_H_
37 void setPoint(
const std::vector<glm::vec2>& points);
38 void setPoint(
const std::vector<glm::vec3>& points);
67 int getEffectiveDegree()
const;
68 void updateKnotVector();
69 int findSpan(
float t)
const;
71 std::vector<glm::vec3> points;
72 std::vector<float> knots;
void addPoint(glm::vec2 point)
glm::vec3 getPoint(float t) const
void setDegree(int degree)
void addPoint(glm::vec3 point)
void setResolution(int resolution)
float getSlope(float t) const
void setPoint(const std::vector< glm::vec3 > &points)
void setPoint(const std::vector< glm::vec2 > &points)
int getResolution() const
void setPointAtIndex(int index, glm::vec2 point)
glm::vec2 getPoint2DAtIndex(int index) const
glm::vec3 getPointAtIndex(int index) const
glm::vec2 getPoint2D(float t) const
std::vector< glm::vec2 > getPoints2D() const
void setPointAtIndex(int index, glm::vec3 point)
std::vector< glm::vec3 > getPoints() const