PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Static Public Member Functions | List of all members
PGENLib.Vec2d Struct Reference

A 2D vector, with two floating point fields u and v. More...

Public Member Functions

 Vec2d ()
 Empty constructor.
 
 Vec2d (float u, float v)
 Constructor with float parameters. More...
 

Static Public Member Functions

static bool are_close (Vec2d p, Vec2d q)
 Check weather two Vec2d objects are equals. More...
 

Detailed Description

A 2D vector, with two floating point fields u and v.

Constructor & Destructor Documentation

◆ Vec2d()

PGENLib.Vec2d.Vec2d ( float  u,
float  v 
)

Constructor with float parameters.

Parameters
u
v

Member Function Documentation

◆ are_close()

static bool PGENLib.Vec2d.are_close ( Vec2d  p,
Vec2d  q 
)
static

Check weather two Vec2d objects are equals.

Parameters
p
q
Returns

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