Update ToString usage
This commit is contained in:
parent
b48177ff15
commit
1864e6c137
2 changed files with 12 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ namespace Raylib_cs
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"{{r:{r} g:{g} b:{b} a:{a}}}";
|
return $"{{R:{r} G:{g} B:{b} A:{a}}}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace Raylib_cs
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"{{x:{x} y:{y} width:{width} height:{height}}}";
|
return $"{{X:{x} Y:{y} Width:{width} Height:{height}}}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -70,6 +70,11 @@ namespace Raylib_cs
|
||||||
this.position = position;
|
this.position = position;
|
||||||
this.direction = direction;
|
this.direction = direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return $"{{Position:{position} Direction:{direction}}}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -97,5 +102,10 @@ namespace Raylib_cs
|
||||||
/// Surface normal of hit
|
/// Surface normal of hit
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 normal;
|
public Vector3 normal;
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return $"{{Hit:{hit} Distance:{distance} Point:{point} Normal:{normal}}}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue