bWidgets
Core widget toolkit designed for Blender
bwPoint.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
5
namespace
bWidgets
{
6
7
class
bwPoint
{
8
public
:
9
bwPoint
(
float
x
= 0,
float
y
= 0);
10
11
auto
operator==
(
const
bwPoint
& rhs)
const
-> bool;
12
13
float
x
,
y
;
14
};
15
16
auto
operator*
(
const
bwPoint
&,
float
) ->
bwPoint
;
17
auto
operator*
(
float
,
const
bwPoint
&) ->
bwPoint
;
18
auto
operator+
(
const
bwPoint
&,
const
bwPoint
&) ->
bwPoint
;
19
auto
operator-
(
const
bwPoint
&,
const
bwPoint
&) ->
bwPoint
;
20
21
auto
distance
(
bwPoint
a,
bwPoint
b) -> float;
22
23
}
// namespace bWidgets
bWidgets::bwPoint
Definition:
bwPoint.h:7
bWidgets::bwPoint::bwPoint
bwPoint(float x=0, float y=0)
Definition:
bwPoint.cc:7
bWidgets::bwPoint::operator==
auto operator==(const bwPoint &rhs) const -> bool
Definition:
bwPoint.cc:11
bWidgets::bwPoint::y
float y
Definition:
bwPoint.h:13
bWidgets::bwPoint::x
float x
Definition:
bwPoint.h:13
bWidgets
Definition:
bwContext.h:3
bWidgets::operator+
auto operator+(const bwPoint &lhs, const bwPoint &rhs) -> bwPoint
Definition:
bwPoint.cc:24
bWidgets::distance
auto distance(bwPoint a, bwPoint b) -> float
Definition:
bwPoint.cc:33
bWidgets::operator*
auto operator*(const bwPoint &lhs, float factor) -> bwPoint
Definition:
bwPoint.cc:16
bWidgets::operator-
auto operator-(const bwPoint &lhs, const bwPoint &rhs) -> bwPoint
Definition:
bwPoint.cc:28
bwidgets
generics
bwPoint.h
Generated by
1.9.3