*
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
public struct Double3
|
||||
{
|
||||
public double x;
|
||||
public double y;
|
||||
public double z;
|
||||
|
||||
public Double3(double x, double y, double z)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
public double magnitude
|
||||
{
|
||||
get { return Math.Sqrt(x*x + y*y + z*z); }
|
||||
}
|
||||
|
||||
public static Double3 zero
|
||||
{
|
||||
get { return new Double3(0, 0, 0); }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user