namespace Cryville.Common.Math { /// /// Provides a set of operators for vector type . /// /// The vector type. public interface IVectorOperator { /// /// Adds two vectors. /// /// Lefthand vector. /// Righthand vector. /// The sum of the two vectors. T Add(T lhs, T rhs); /// /// Multiplies a vector with a number. /// /// The number. /// The vector. /// The product of the number and the vector. T ScalarMultiply(float lhs, T rhs); } }