Skip to content

Commit

Permalink
refactor: Rename stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobart2967 committed Aug 23, 2024
1 parent 96a6c52 commit ab81fc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Source/Visuals/Extensions/Vector3Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
using System;
using Godot;

namespace GoDough.Visuals.Extensions {
public static class Vector3Extensions {
namespace GoDough.Visuals.Extensions
{
public static class Vector3Extensions
{

public static Vector3 CopyWith(
this Vector3 source,
Nullable<float> x,
Nullable<float> x = null,
Nullable<float> y = null,
Nullable<float> z = null) {
Nullable<float> z = null)
{
return new Vector3(
x ?? source.X,
y ?? source.Y,
z ?? source.Z);
}

public static Vector3 Copy(
this Vector3 source) {
return source.CopyWith(null);
public static Vector3 Copy(
this Vector3 source)
{
return source.CopyWith();
}
}
}

0 comments on commit ab81fc9

Please sign in to comment.