![]() |
KudanAR - iOS
1.6.0
|
#import <ARVector4.h>
Inherits NSObject.
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: |
(ARVector4 *) | + vectorWithOML: [implementation] |
Protected Attributes | |
SEL | _vectorModifiedSelector |
__weak id | _delegate |
Properties | |
float | x |
float | y |
float | z |
float | w |
OgreMathLib::Vector4 | vectorOML [implementation] |
An ARVector4 is a 4-Dimensional vector consisting of an X, Y, Z and W component. Generally used for graphical shading.
- (float) dotProductWithVector: | (ARVector4 *) | vector |
Calculates the dot product of this vector and another given vector and returns the result.
Example of use:
vector | The other vector to use for the dot product calculation. |
Adds the components of two vectors together and stores the result in this vector.
Example of use:
vector | The vector to add to this vector. |
Divides this vector's components by the components of a given vector a stores the result in this vector.
Example of use:
vector | The vector to divide this vector by. |
Multiplies this vector's components by the components of a given vector and stores the result in this vector. This is NOT the same as the Dot Product OR the Cross Product. It simply multiplies the components together.
Example of use:
vector | The vector to multiply with this vector. |
Subtracts a given vector's components from the componentes this vector and stores the result in this vector.
Example of use:
vector | The vector to subtract from this vector. |
Multiplies this vector's components by the components of a given vector and returns the result. This is NOT the same as the Dot Product OR the Cross Product. It simply multiplies the components together.
Example of use:
vector | The vector to multiply with this vector. |
- (void) setModifyObserverWithDelegate: | (id) | delegate | |
selector: | (SEL) | selector | |
- (void) setX: | (float) | x | |
y: | (float) | y | |
z: | (float) | z | |
w: | (float) | w | |
Sets the components of this vector with the given values.
Example of use:
x | The value to give the X component of this vector. |
y | The value to give the Y component of this vector. |
z | The value to give the Z component of this vector. |
w | The value to give the W component of this vector. |
Subtracts a given vector's components from the components of this vector and returns the result.
Example of use:
vector | The vector to subtract from 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.