Krita Source Code Documentation
Loading...
Searching...
No Matches
Ellipse.cc File Reference
#include "Ellipse.h"
#include <cmath>
#include <iostream>

Go to the source code of this file.

Functions

qreal length (const QPointF &vec)
 
QPointF rotate90 (const QPointF &p)
 
qreal sqrlength (const QPointF &vec)
 

Function Documentation

◆ length()

qreal length ( const QPointF & vec)
inline

Definition at line 82 of file Ellipse.cc.

83{
84 return sqrt(vec.x() * vec.x() + vec.y() * vec.y());
85}

◆ rotate90()

QPointF rotate90 ( const QPointF & p)
inline

Definition at line 58 of file Ellipse.cc.

58 {
59 return QPointF(p.y(), -p.x());
60}
const Params2D p

References p.

◆ sqrlength()

qreal sqrlength ( const QPointF & vec)
inline

Definition at line 78 of file Ellipse.cc.

79{
80 return vec.x() * vec.x() + vec.y() * vec.y();
81}