/// <summary>
/// 重载运算符 向量3相乘
/// </summary>
public class Vector3Multiply
{
    public float x { get; private set; }
    public float y { get; private set; }
    public float z { get; private set; }


    public Vector3Multiply(float x, float y, float z)
    {
        this.x = x;
        this.y = y;
        this.z = z;
    }


    public static Vector3 operator *(Vector3Multiply a, Vector3Multiply b) => new Vector3(a.x * b.x, a.y * b.y, a.z * b.z);
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2021-08-07
  • 2021-08-02
  • 2021-06-20
  • 2021-06-22
  • 2021-04-29
相关资源
相似解决方案