KudanAR - iOS  1.6.0
ARColour Class Reference

#import <ARColour.h>

Inherits ARVector3.

Instance Methods

(instancetype) - initWithRed:green:blue:
 
- Instance Methods inherited from ARVector3
(BOOL) - equalsVector:withTolerance:
 
(ARVector3 *) - addVector:
 
(ARVector3 *) - localAddVector:
 
(ARVector3 *) - subtractVector:
 
(ARVector3 *) - localSubtractVector:
 
(ARVector3 *) - multiplyByVector:
 
(ARVector3 *) - localMultiplyByVector:
 
(ARVector3 *) - divideByVector:
 
(ARVector3 *) - localDivideByVector:
 
(ARVector3 *) - multiplyByScalar:
 
(ARVector3 *) - divideByScalar:
 
(float) - distanceToVector:
 
(float) - dotProductWithVector:
 
(ARVector3 *) - normalise
 
(ARVector3 *) - negate
 
(ARVector3 *) - crossProductWithVector:
 
(ARVector3 *) - localCrossProductWithVector:
 
(ARQuaternion *) - rotationTo:
 
(ARVector3 *) - lerpTo:atTime:
 
(void) - setX:y:z:
 
(void) - setModifyObserverWithDelegate:selector:
 

Additional Inherited Members

- Class Methods inherited from ARVector3
(ARVector3 *) + vectorWithZero
 
(ARVector3 *) + vectorWithValuesX:y:z:
 
(ARVector3 *) + vectorWithValues:
 
(ARVector3 *) + vectorWithVector:
 
(ARVector3 *) + vectorWithOML: [implementation]
 
- Protected Attributes inherited from ARVector3
SEL _vectorModifiedSelector
 
__weak id _delegate
 
- Properties inherited from ARVector3
float x
 
float y
 
float z
 
float length
 
OgreMathLib::Vector3 vectorOML [implementation]
 

Detailed Description

Wrapper for an ARVector3 that allows initialisation with full (0..255) RGB values and handles the conversion to the range 0..1.

Method Documentation

◆ initWithRed:green:blue:

- (instancetype) initWithRed: (float)  red
green: (float)  green
blue: (float)  blue 

Initialise the vector with red, green and blue values in the 0..255 range.

Example of use:

ARColour *colour = [[ARColour alloc] initWithRed:225.0 green:32.0 blue:64.0];

The documentation for this class was generated from the following files:
ARColour
Definition: ARColour.h:8