mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-09 05:21:49 +02:00
Fix typo.
This commit is contained in:
parent
6e90a74706
commit
3e533b33bb
@ -1940,8 +1940,8 @@ int _Geometry::get_uv84_normal_bit(const Vector3 &p_vector) {
|
|||||||
return Geometry::get_uv84_normal_bit(p_vector);
|
return Geometry::get_uv84_normal_bit(p_vector);
|
||||||
}
|
}
|
||||||
|
|
||||||
PoolVector2iArray _Geometry::brenzenham_line(int x0, int x1, int y0, int y1) {
|
PoolVector2iArray _Geometry::bresenham_line(int x0, int x1, int y0, int y1) {
|
||||||
return Geometry::brenzenham_line_pv(x0, x1, y0, y1);
|
return Geometry::bresenham_line_pv(x0, x1, y0, y1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _Geometry::_bind_methods() {
|
void _Geometry::_bind_methods() {
|
||||||
@ -1991,7 +1991,7 @@ void _Geometry::_bind_methods() {
|
|||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("make_atlas", "sizes"), &_Geometry::make_atlas);
|
ClassDB::bind_method(D_METHOD("make_atlas", "sizes"), &_Geometry::make_atlas);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("brenzenham_line", "x0", "x1", "y0", "y1"), &_Geometry::brenzenham_line);
|
ClassDB::bind_method(D_METHOD("bresenham_line", "x0", "x1", "y0", "y1"), &_Geometry::bresenham_line);
|
||||||
|
|
||||||
BIND_ENUM_CONSTANT(OPERATION_UNION);
|
BIND_ENUM_CONSTANT(OPERATION_UNION);
|
||||||
BIND_ENUM_CONSTANT(OPERATION_DIFFERENCE);
|
BIND_ENUM_CONSTANT(OPERATION_DIFFERENCE);
|
||||||
|
@ -514,7 +514,7 @@ public:
|
|||||||
|
|
||||||
Dictionary make_atlas(const Vector<Size2> &p_rects);
|
Dictionary make_atlas(const Vector<Size2> &p_rects);
|
||||||
|
|
||||||
PoolVector2iArray brenzenham_line(int x0, int x1, int y0, int y1);
|
PoolVector2iArray bresenham_line(int x0, int x1, int y0, int y1);
|
||||||
|
|
||||||
_Geometry();
|
_Geometry();
|
||||||
};
|
};
|
||||||
|
@ -1045,7 +1045,7 @@ public:
|
|||||||
static bool convex_hull_intersects_convex_hull(const Plane *p_planes_a, int p_plane_count_a, const Plane *p_planes_b, int p_plane_count_b);
|
static bool convex_hull_intersects_convex_hull(const Plane *p_planes_a, int p_plane_count_a, const Plane *p_planes_b, int p_plane_count_b);
|
||||||
static real_t calculate_convex_hull_volume(const Geometry::MeshData &p_md);
|
static real_t calculate_convex_hull_volume(const Geometry::MeshData &p_md);
|
||||||
|
|
||||||
static _FORCE_INLINE_ Vector<Point2i> brenzenham_line(int x0, int x1, int y0, int y1) {
|
static _FORCE_INLINE_ Vector<Point2i> bresenham_line(int x0, int x1, int y0, int y1) {
|
||||||
Vector<Point2i> points;
|
Vector<Point2i> points;
|
||||||
|
|
||||||
float dx = ABS(x1 - x0);
|
float dx = ABS(x1 - x0);
|
||||||
@ -1088,7 +1088,7 @@ public:
|
|||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
|
||||||
static _FORCE_INLINE_ PoolVector2iArray brenzenham_line_pv(int x0, int x1, int y0, int y1) {
|
static _FORCE_INLINE_ PoolVector2iArray bresenham_line_pv(int x0, int x1, int y0, int y1) {
|
||||||
PoolVector2iArray points;
|
PoolVector2iArray points;
|
||||||
|
|
||||||
float dx = ABS(x1 - x0);
|
float dx = ABS(x1 - x0);
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="brenzenham_line">
|
<method name="bresenham_line">
|
||||||
<return type="PoolVector2iArray" />
|
<return type="PoolVector2iArray" />
|
||||||
<argument index="0" name="x0" type="int" />
|
<argument index="0" name="x0" type="int" />
|
||||||
<argument index="1" name="x1" type="int" />
|
<argument index="1" name="x1" type="int" />
|
||||||
|
Loading…
Reference in New Issue
Block a user