MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / dot

Method dot

include/reactphysics3d/mathematics/Vector3.h:207–209  ·  view source on GitHub ↗

Scalar product of two vectors (RP3D_FORCE_INLINE)

Source from the content-addressed store, hash-verified

205
206// Scalar product of two vectors (RP3D_FORCE_INLINE)
207RP3D_FORCE_INLINE decimal Vector3::dot(const Vector3& vector) const {
208 return (x*vector.x + y*vector.y + z*vector.z);
209}
210
211// Cross product of two vectors (RP3D_FORCE_INLINE)
212RP3D_FORCE_INLINE Vector3 Vector3::cross(const Vector3& vector) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected