aswi2021virtual-surreality-gitlab/deltarobot-vr/Assets/DeltaRobotVr/Single3.cs @ 5b50fe1a
1 |
namespace DeltaRobotVr |
---|---|
2 |
{
|
3 |
|
4 |
/// <summary>
|
5 |
/// A simple 3D float vector.
|
6 |
/// </summary>
|
7 |
public readonly struct Single3 |
8 |
{
|
9 |
public float X { get; } |
10 |
public float Y { get; } |
11 |
public float Z { get; } |
12 |
|
13 |
public Single3(float x, float y, float z) |
14 |
{
|
15 |
X = x; |
16 |
Y = y; |
17 |
Z = z; |
18 |
}
|
19 |
|
20 |
public override string ToString() => "Single3[ " + X + " " + Y + " " + Z + " ]"; |
21 |
}
|
22 |
}
|