added default RcVec3f

This commit is contained in:
ikpil 2023-06-07 15:06:23 +09:00
parent 5c14700136
commit acc1a17fa4
1 changed files with 6 additions and 3 deletions

View File

@ -27,8 +27,11 @@ namespace DotRecast.Core
public float y;
public float z;
public static RcVec3f Zero { get; } = new RcVec3f(0, 0, 0);
public static RcVec3f Up { get; } = new RcVec3f(0, 1, 0);
public static RcVec3f Zero { get; } = new RcVec3f(0.0f, 0.0f, 0.0f);
public static RcVec3f One { get; } = new RcVec3f(1.0f);
public static RcVec3f UnitX { get; } = new RcVec3f(1.0f, 0.0f, 0.0f);
public static RcVec3f UnitY { get; } = new RcVec3f(0.0f, 1.0f, 0.0f);
public static RcVec3f UnitZ { get; } = new RcVec3f(0.0f, 0.0f, 1.0f);
public static RcVec3f Of(float[] f)
{