8 #ifndef META_OCEAN_INTERACTION_JS_VECTOR_2_H
9 #define META_OCEAN_INTERACTION_JS_VECTOR_2_H
158 static inline const char* objectName();
This class implements the java script interaction library object.
Definition: JSLibrary.h:32
This class implements the base class for all native wrapper of JavaScript objects.
Definition: JSObject.h:31
This class implements a wrapper for a JavaScript Vector2 object.
Definition: JSVector2.h:30
static const char * objectName()
Returns the JavaScript name of this object.
Definition: JSVector2.h:168
FunctionId
Definition of ids for individual functions.
Definition: JSVector2.h:51
@ FI_ANGLE
Determines the angle between two vectors in radian.
Definition: JSVector2.h:67
@ FI_INVERT
Inverts this vector.
Definition: JSVector2.h:75
@ FI_IS_EQUAL
Returns whether two vectors are equal up to some epsilon.
Definition: JSVector2.h:91
@ FI_LENGTH
Returns the length of this vector.
Definition: JSVector2.h:99
@ FI_MULTIPLY
Multiplies two vectors to determine the scalar product or multiplies this vector with a scalar.
Definition: JSVector2.h:116
@ FI_NORMALIZED
Returns the normalized vector of this vector, so that the new vector has unit length.
Definition: JSVector2.h:132
@ FI_NORMALIZE
Normalizes this vector so that the vector has unit length afterwards.
Definition: JSVector2.h:124
@ FI_INVERTED
Returns the inverted vector of this vector.
Definition: JSVector2.h:83
@ FI_DISTANCE
Returns the distance between this vector and another vector.
Definition: JSVector2.h:107
@ FI_STRING
Returns a string with the values of this vector.
Definition: JSVector2.h:140
@ FI_ADD
Adds two vectors or adds a scalar value to this vector.
Definition: JSVector2.h:59
static void createFunctionTemplate()
Creates the function template and object template for this object.
AccessorId
Definition of ids for individual accessors.
Definition: JSVector2.h:40
@ AI_X
The accessor for the x property, a number value.
Definition: JSVector2.h:42
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15