KudanAR - iOS
ARVector4 Class Reference

#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
 

Detailed Description

An ARVector4 is a 4-Dimensional vector consisting of an X, Y, Z and W component. Generally used for graphical shading.

Method Documentation

- (ARVector4 *) addVector: (ARVector4 *)  vector

Add this vector to another vector and return the result.

Parameters
vectorThe vector to add to this vector.
Returns
The sum of the vectors.
- (ARVector4 *) localAddVector: (ARVector4 *)  vector

Add this vector to another vector and store the result in this vector.

Parameters
vectorThe vector to add to this vector.
Returns
This vector, now the sum of the two vectors.
+ (ARVector4 *) vectorWithValuesX: (float)  x
y: (float)  y
z: (float)  z
w: (float)  w 

Create a vector with the specified component values.

Example of use:

ARVector4 *vector = [ARVector4 vectorWithValuesX:1 y:0 z:1 w:0];
Parameters
xThe x component of the vector.
yThe y component of the vector.
zThe z component of the vector.
wThe w component of the vector.
Returns
A vector with components set to the specified values.
+ (ARVector4 *) vectorWithZero

Create a vector with all 4 components set to 0.

Example of use:

Returns
A vector with (0, 0, 0, 0)

Property Documentation

- (float) w
readwritenonatomicassign

The w value of the vector.

- (float) x
readwritenonatomicassign

The x value of the vector.

- (float) y
readwritenonatomicassign

The y value of the vector.

- (float) z
readwritenonatomicassign

The z value of the vector.


The documentation for this class was generated from the following file: