![]() |
KudanAR - iOS
|
#import <ARVector4.h>
Inheritance diagram for ARVector4:
Collaboration diagram for ARVector4:Instance Methods | |
| (ARVector4 *) | - addVector: |
| (ARVector4 *) | - localAddVector: |
| (ARVector4 *) | - subtractVector: |
| (ARVector4 *) | - localSubtractVector: |
| (ARVector4 *) | - multiplyByVector: |
| (ARVector4 *) | - localMultiplyByVector: |
| (ARVector4 *) | - divideByVector: |
| (ARVector4 *) | - localDivideByVector: |
| (float) | - dotProductWithVector: |
| (void) | - setX:y:z:w: |
| (void) | - setModifyObserverWithDelegate:selector: |
Class Methods | |
| (ARVector4 *) | + vectorWithZero |
| (ARVector4 *) | + vectorWithValuesX:y:z:w: |
Properties | |
| float | x |
| float | y |
| float | z |
| float | w |
An ARVector4 is a 4-Dimensional vector consisting of an X, Y, Z and W component. Generally used for graphical shading.
Add this vector to another vector and return the result.
| vector | The vector to add to this vector. |
Add this vector to another vector and store the result in this vector.
| vector | The vector to add to this vector. |
| + (ARVector4 *) vectorWithValuesX: | (float) | x | |
| y: | (float) | y | |
| z: | (float) | z | |
| w: | (float) | w | |
Create a vector with the specified component values.
Example of use:
| x | The x component of the vector. |
| y | The y component of the vector. |
| z | The z component of the vector. |
| w | The w component of the vector. |
| + (ARVector4 *) vectorWithZero |
Create a vector with all 4 components set to 0.
Example of use:
|
readwritenonatomicassign |
The w value of the vector.
|
readwritenonatomicassign |
The x value of the vector.
|
readwritenonatomicassign |
The y value of the vector.
|
readwritenonatomicassign |
The z value of the vector.