8 #ifndef META_OCEAN_INTERACTION_JS_VECTOR_3_H
9 #define META_OCEAN_INTERACTION_JS_VECTOR_3_H
166 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 Vector3 object.
Definition: JSVector3.h:28
AccessorId
Definition of ids for individual accessors.
Definition: JSVector3.h:38
@ AI_X
The accessor for the x property, a number value.
Definition: JSVector3.h:40
@ AI_Y
The accessor for the y property, a number value.
Definition: JSVector3.h:42
static void createFunctionTemplate()
Creates the function template and object template for this object.
static const char * objectName()
Returns the JavaScript name of this object.
Definition: JSVector3.h:176
FunctionId
Definition of ids for individual functions.
Definition: JSVector3.h:51
@ FI_INVERT
Inverts this vector.
Definition: JSVector3.h:83
@ FI_LENGTH
Returns the length of this vector.
Definition: JSVector3.h:107
@ FI_ADD
Adds two vectors or adds a scalar value to this vector.
Definition: JSVector3.h:59
@ FI_STRING
Returns a string with the values of this vector.
Definition: JSVector3.h:148
@ FI_MULTIPLY
Multiplies two vectors to determine the scalar product or multiplies this vector with a scalar.
Definition: JSVector3.h:124
@ FI_NORMALIZE
Normalizes this vector so that the vector has unit length afterwards.
Definition: JSVector3.h:132
@ FI_INVERTED
Returns the inverted vector of this vector.
Definition: JSVector3.h:91
@ FI_NORMALIZED
Returns the normalized vector of this vector, so that the new vector has unit length.
Definition: JSVector3.h:140
@ FI_DISTANCE
Returns the distance between this vector and another vector.
Definition: JSVector3.h:115
@ FI_ANGLE
Determines the angle between two vectors in radian.
Definition: JSVector3.h:67
@ FI_CROSS
Determines the cross product between two vectors.
Definition: JSVector3.h:75
@ FI_IS_EQUAL
Returns whether two vectors are equal up to some epsilon.
Definition: JSVector3.h:99
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15