public static SVector3 operator +(SVector3 lhs, SVector3 rhs) { SVector3 sVector = new SVector3 { x = lhs.x, y = lhs.y, z = lhs.z }; sVector.x += rhs.x; sVector.y += rhs.y; sVector.z += rhs.z; return(sVector); }
public static SVector3 operator *(SVector3 lhs, float rhs) { SVector3 sVector = new SVector3 { x = lhs.x, y = lhs.y, z = lhs.z }; sVector.x *= rhs; sVector.y *= rhs; sVector.z *= rhs; return(sVector); }
public override bool Equals(object obj) { SVector3 sVector = obj as SVector3; return(sVector != null && sVector.x == this.x && sVector.y == this.y && sVector.z == this.z); }