114float Vector2::Dot(
const float* p_a,
const float* p_b)
const;
[AI] Represents a 2D mathematical vector with floating-point coordinates.
virtual void operator+=(float p_value)
[AI] In-place add a scalar to all coordinates.
virtual float Dot(const float *p_a, const float *p_b) const
[AI] Compute the dot product of the two float arrays interpreted as vectors of 2 elements.
virtual void operator/=(const float &p_value)
[AI] In-place scalar division.
virtual void AddImpl(const float *p_value)
[AI] Adds the values pointed to by p_value to this vector.
virtual void SetData(float *p_data)
[AI] Set the internal data pointer to external storage.
virtual void DivImpl(const float &p_value)
[AI] Divides this vector by a scalar value.
virtual float * GetData()
[AI] Retrieves the mutable in-memory data pointer for this vector.
virtual float LenSquared() const
[AI] Compute the squared length (magnitude^2) of the vector.
virtual void SubImpl(const float *p_value)
[AI] Subtracts the vector specified by p_value from this vector.
virtual int Unitize()
[AI] Scales the vector so its norm is 1 (unit vector).
virtual void MulImpl(const float *p_value)
[AI] Multiplies this vector by another vector (per element).
virtual void operator-=(const float *p_other)
[AI] In-place subtraction of vector pointed to by p_other.
virtual void operator*=(const float *p_other)
[AI] In-place per-element multiplication of this vector by another array.
virtual void EqualsImpl(const float *p_data)
[AI] Assigns values from provided array to this vector.
virtual void Clear()
[AI] Zeros all elements (sets all coordinates to 0.0).
virtual void operator=(const float *p_other)
[AI] Assigns this vector's elements from a pointer to two floats.
virtual float DotImpl(const float *p_a, const float *p_b) const
[AI] Computes the dot product of two arrays interpreted as vectors.