Public Member Functions | Data Fields
AtHPoint Struct Reference

Homogeneous point. More...

#include <ai_vector.h>

Public Member Functions

AI_DEVICE constexpr AtHPoint (float x, float y, float z, float w)
 
AI_DEVICE constexpr AtHPoint (const AtVector &v, float w)
 
AI_DEVICE constexpr AtHPoint operator+ (const AtHPoint &p) const
 
AI_DEVICE constexpr AtHPoint operator- (const AtHPoint &p) const
 
AI_DEVICE constexpr AtHPoint operator* (float k) const
 
AI_DEVICE constexpr AtHPoint operator- () const
 
AI_DEVICE AtVector project () const
 Project a homogeneous vector back into 3d: vout = vin.w != 0 ? vin * (1 / vin.w) : (0,0,0)
 

Data Fields

float x
 
float y
 
float z
 
float w
 

Detailed Description

Homogeneous point.


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

© 2009-2018 Solid Angle SL · all rights reserved · www.solidangle.com