BitmapToolkit Scol plugin
Public Member Functions | Public Attributes | List of all members
Vector2 Class Reference

#include <Prerequisites.h>

Public Member Functions

 Vector2 ()
 
 Vector2 (float xx, float yy)
 
float GetMagnitude ()
 
Vector2 GetNoramlizedVector ()
 
float DotProduct (Vector2 other)
 
Vector2 operator- ()
 
Vector2 operator+= (Vector2 other)
 
Vector2 operator-= (Vector2 other)
 
Vector2 operator*= (float scalar)
 
Vector2 operator/= (float scalar)
 

Public Attributes

float x
 
float y
 

Detailed Description

Definition at line 73 of file Prerequisites.h.

Constructor & Destructor Documentation

◆ Vector2() [1/2]

Vector2::Vector2 ( )
inline

Definition at line 76 of file Prerequisites.h.

◆ Vector2() [2/2]

Vector2::Vector2 ( float  xx,
float  yy 
)
inline

Definition at line 82 of file Prerequisites.h.

Member Function Documentation

◆ DotProduct()

float Vector2::DotProduct ( Vector2  other)
inline

Definition at line 103 of file Prerequisites.h.

◆ GetMagnitude()

float Vector2::GetMagnitude ( )
inline

Definition at line 90 of file Prerequisites.h.

◆ GetNoramlizedVector()

Vector2 Vector2::GetNoramlizedVector ( )
inline

Definition at line 95 of file Prerequisites.h.

◆ operator*=()

Vector2 Vector2::operator*= ( float  scalar)
inline

Definition at line 125 of file Prerequisites.h.

◆ operator+=()

Vector2 Vector2::operator+= ( Vector2  other)
inline

Definition at line 115 of file Prerequisites.h.

◆ operator-()

Vector2 Vector2::operator- ( )
inline

Definition at line 110 of file Prerequisites.h.

◆ operator-=()

Vector2 Vector2::operator-= ( Vector2  other)
inline

Definition at line 120 of file Prerequisites.h.

◆ operator/=()

Vector2 Vector2::operator/= ( float  scalar)
inline

Definition at line 130 of file Prerequisites.h.

Member Data Documentation

◆ x

float Vector2::x

Definition at line 139 of file Prerequisites.h.

◆ y

float Vector2::y

Definition at line 140 of file Prerequisites.h.


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