Public Member Functions | Data Fields | Friends
AtVector2 Struct Reference

2D point More...

#include <ai_vector.h>

Public Member Functions

AI_DEVICE constexpr AtVector2 (float x, float y)
 
AI_DEVICE constexpr AtVector2 (const AtVector &v)
 
AI_DEVICE constexpr AtVector2 operator+ (const AtVector2 &p) const
 
AI_DEVICE AtVector2operator+= (const AtVector2 &p)
 
AI_DEVICE constexpr AtVector2 operator+ (float f) const
 
AI_DEVICE AtVector2operator+= (float f)
 
AI_DEVICE constexpr AtVector2 operator- (const AtVector2 &p) const
 
AI_DEVICE AtVector2operator-= (const AtVector2 &p)
 
AI_DEVICE constexpr AtVector2 operator- (float f) const
 
AI_DEVICE AtVector2operator-= (float f)
 
AI_DEVICE constexpr AtVector2 operator- () const
 
AI_DEVICE constexpr AtVector2 operator* (const AtVector2 &p) const
 
AI_DEVICE AtVector2 operator*= (const AtVector2 &p)
 
AI_DEVICE constexpr AtVector2 operator* (float f) const
 
AI_DEVICE AtVector2 operator*= (float f)
 
AI_DEVICE constexpr AtVector2 operator/ (const AtVector2 &p) const
 
AI_DEVICE AtVector2 operator/= (const AtVector2 &p)
 
AI_DEVICE AtVector2 operator/ (float f) const
 
AI_DEVICE AtVector2 operator/= (float f)
 
AI_DEVICE constexpr bool operator== (const AtVector2 &p) const
 
AI_DEVICE constexpr bool operator!= (const AtVector2 &p) const
 
AI_DEVICE AtVector2operator= (float f)
 
AI_DEVICE float & operator[] (unsigned int i)
 
AI_DEVICE constexpr const float & operator[] (unsigned int i) const
 

Data Fields

float x
 
float y
 

Friends

AI_DEVICE friend constexpr AtVector2 operator* (float f, const AtVector2 &p)
 
AI_DEVICE friend constexpr AtVector2 operator+ (float f, const AtVector2 &p)
 
AI_DEVICE friend constexpr AtVector2 operator- (float f, const AtVector2 &p)
 

Detailed Description

2D point


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

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