Skip to content

BezierCurve

#include <beziercurve.h>

Public Functions

Name
QVector3D position(float t) const
QVector3D direction(float t) const
QVector3D position(float t) const
QVector3D direction(float t) const

Public Attributes

Name
QVector3D p0
QVector3D p1
QVector3D p2
QVector3D p3
glm::vec3 p0
glm::vec3 p1
glm::vec3 p2
glm::vec3 p3

Friends

Name
constexpr friend bool operator==(const BezierCurve & lhs, const BezierCurve & rhs)
constexpr friend bool operator!=(const BezierCurve & lhs, const BezierCurve & rhs)
BezierCurve operator*(const BezierCurve & curve, float factor)
BezierCurve operator*(float factor, const BezierCurve & curve)
constexpr friend bool operator==(const BezierCurve & lhs, const BezierCurve & rhs)
constexpr friend bool operator!=(const BezierCurve & lhs, const BezierCurve & rhs)
BezierCurve operator*(const BezierCurve & curve, float factor)
BezierCurve operator*(float factor, const BezierCurve & curve)

Public Functions Documentation

function position

1
2
3
QVector3D position(
    float t
) const

function direction

1
2
3
QVector3D direction(
    float t
) const

function position

1
2
3
QVector3D position(
    float t
) const

function direction

1
2
3
QVector3D direction(
    float t
) const

Public Attributes Documentation

variable p0

1
QVector3D p0;

variable p1

1
QVector3D p1;

variable p2

1
QVector3D p2;

variable p3

1
QVector3D p3;

variable p0

1
glm::vec3 p0;

variable p1

1
glm::vec3 p1;

variable p2

1
glm::vec3 p2;

variable p3

1
glm::vec3 p3;

Friends

friend operator==

1
2
3
4
5
friend constexpr friend bool operator==(
    const BezierCurve & lhs,

    const BezierCurve & rhs
);

friend operator!=

1
2
3
4
5
friend constexpr friend bool operator!=(
    const BezierCurve & lhs,

    const BezierCurve & rhs
);

friend operator*

1
2
3
4
5
friend BezierCurve operator*(
    const BezierCurve & curve,

    float factor
);

friend operator*

1
2
3
4
5
friend BezierCurve operator*(
    float factor,

    const BezierCurve & curve
);

friend operator==

1
2
3
4
5
friend constexpr friend bool operator==(
    const BezierCurve & lhs,

    const BezierCurve & rhs
);

friend operator!=

1
2
3
4
5
friend constexpr friend bool operator!=(
    const BezierCurve & lhs,

    const BezierCurve & rhs
);

friend operator*

1
2
3
4
5
friend BezierCurve operator*(
    const BezierCurve & curve,

    float factor
);

friend operator*

1
2
3
4
5
friend BezierCurve operator*(
    float factor,

    const BezierCurve & curve
);

Updated on 2023-07-03 at 11:02:07 +0000