Oolite 1.91.0.7646-241128-10e222e
|
Go to the source code of this file.
Functions | |
void | InitOOJSQuaternion (JSContext *context, JSObject *global) |
JSObject * | JSQuaternionWithQuaternion (JSContext *context, Quaternion quaternion) NONNULL_FUNC |
BOOL | QuaternionToJSValue (JSContext *context, Quaternion quaternion, jsval *outValue) NONNULL_FUNC |
BOOL | JSValueToQuaternion (JSContext *context, jsval value, Quaternion *outQuaternion) NONNULL_FUNC |
BOOL | JSObjectGetQuaternion (JSContext *context, JSObject *quaternionObj, Quaternion *outQuaternion) GCC_ATTR((nonnull(1 |
BOOL BOOL | JSQuaternionSetQuaternion (JSContext *context, JSObject *quaternionObj, Quaternion quaternion) GCC_ATTR((nonnull(1))) |
BOOL | QuaternionFromArgumentList (JSContext *context, NSString *scriptClass, NSString *function, uintN argc, jsval *argv, Quaternion *outQuaternion, uintN *outConsumed) GCC_ATTR((nonnull(1 |
BOOL BOOL | QuaternionFromArgumentListNoError (JSContext *context, uintN argc, jsval *argv, Quaternion *outVector, uintN *outConsumed) GCC_ATTR((nonnull(1 |
void InitOOJSQuaternion | ( | JSContext * | context, |
JSObject * | global ) |
Definition at line 139 of file OOJSQuaternion.m.
References QuaternionConstruct(), sQuaternionClass, sQuaternionMethods, sQuaternionProperties, sQuaternionPrototype, and sQuaternionStaticMethods.
BOOL JSObjectGetQuaternion | ( | JSContext * | context, |
JSObject * | quaternionObj, | ||
Quaternion * | outQuaternion ) |
Referenced by GetThisQuaternion(), QuaternionFromArgumentListNoErrorInternal(), QuaternionGetProperty(), and QuaternionSetProperty().
BOOL BOOL JSQuaternionSetQuaternion | ( | JSContext * | context, |
JSObject * | quaternionObj, | ||
Quaternion | quaternion ) |
Definition at line 351 of file OOJSQuaternion.m.
References OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and sQuaternionClass.
Referenced by QuaternionSetProperty().
JSObject * JSQuaternionWithQuaternion | ( | JSContext * | context, |
Quaternion | quaternion ) |
Definition at line 145 of file OOJSQuaternion.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, sQuaternionClass, and sQuaternionPrototype.
Referenced by OOJSCallObjCObjectMethod(), and QuaternionToJSValue().
BOOL JSValueToQuaternion | ( | JSContext * | context, |
jsval | value, | ||
Quaternion * | outQuaternion ) |
Definition at line 189 of file OOJSQuaternion.m.
References EXPECT_NOT, and JSObjectGetQuaternion().
Referenced by EntitySetProperty(), OOPlanetEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, PlayerShipSetCustomView(), ShipSetProperty(), and SystemSetWaypoint().
BOOL QuaternionFromArgumentList | ( | JSContext * | context, |
NSString * | scriptClass, | ||
NSString * | function, | ||
uintN | argc, | ||
jsval * | argv, | ||
Quaternion * | outQuaternion, | ||
uintN * | outConsumed ) |
Referenced by QuaternionDot(), QuaternionMultiply(), and VectorRotateBy().
BOOL BOOL QuaternionFromArgumentListNoError | ( | JSContext * | context, |
uintN | argc, | ||
jsval * | argv, | ||
Quaternion * | outVector, | ||
uintN * | outConsumed ) |
BOOL QuaternionToJSValue | ( | JSContext * | context, |
Quaternion | quaternion, | ||
jsval * | outValue ) |
Definition at line 171 of file OOJSQuaternion.m.
References EXPECT_NOT, JSQuaternionWithQuaternion(), OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
Referenced by EntityGetProperty(), PlanetGetProperty(), ShipGetProperty(), and WaypointGetProperty().