public void Normalize() { FixVector3 nor = normalized; this.x = nor.x; this.y = nor.y; this.z = nor.z; }
public static Fix64 Distance(FixVector3 lhs, FixVector3 rhs) { return((lhs - rhs).magnitude); }
public static FixVector3 Cross(FixVector3 lhs, FixVector3 rhs) { return(new FixVector3((lhs.y * rhs.z) - (lhs.z * rhs.y), (lhs.z * rhs.x) - (lhs.x * rhs.z), (lhs.x * rhs.y) - (lhs.y * rhs.x))); }
public static Fix64 Dot(FixVector3 lhs, FixVector3 rhs) { return(lhs.x * rhs.x + lhs.y * rhs.y + lhs.z * rhs.z); }
public static Fix64 Magnitude(FixVector3 vector) { return((vector.x * vector.x) + (vector.y * vector.y) + (vector.z * vector.z)); }
public static FixVector3 Lerp(FixVector3 start, FixVector3 end, Fix64 percent) { return(start + percent * (end - start)); }
public static FixVector3 Normalize(FixVector3 value) { return(value.normalized); }