Small Issues & Maintenance
-=-=-=-=-=-=-=-=-=-=-=-=-= -Begin work on Navigation Meshes (simple pathfinding for now, will improve soon) -More doc on theme overriding -Upgraded OpenSSL to version without bugs -Misc bugfixes
This commit is contained in:
parent
9ff6d55822
commit
678948068b
1323 changed files with 11564 additions and 39728 deletions
|
|
@ -77,6 +77,11 @@ float Vector2::angle_to(const Vector2& p_vector2) const {
|
|||
return Math::atan2( tangent().dot(p_vector2), dot(p_vector2) );
|
||||
}
|
||||
|
||||
float Vector2::angle_to_point(const Vector2& p_vector2) const {
|
||||
|
||||
return Math::atan2( x-p_vector2.x, y - p_vector2.y );
|
||||
}
|
||||
|
||||
float Vector2::dot(const Vector2& p_other) const {
|
||||
|
||||
return x*p_other.x + y*p_other.y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue