You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > neg

19.2.15 neg

v = physics.Vect:neg()

Parameter

Type

Description

self

in physics.Vect

The input vector

v

out physics.Vect

The resulting negated vector

Returns the negative of self.

The Vect class also implements the unary minus operator (-self).

Introduced in platform.apiLevel = '2.0'