OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Properties | List of all members
OmegaEngine.Values.Vector2Ray Struct Reference

Defines a ray in two dimensions, specified by a starting position and a direction. More...

Inheritance diagram for OmegaEngine.Values.Vector2Ray:

Public Member Functions

 Vector2Ray (Vector2 point, Vector2 direction)
 Creates a new ray More...
 
override string ToString ()
 
bool Equals (Vector2Ray other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (Vector2Ray left, Vector2Ray right)
 
static bool operator!= (Vector2Ray left, Vector2Ray right)
 

Properties

Vector2 Position [get]
 Specifies the location of the ray's origin. More...
 
Vector2 Direction [get, set]
 A vector pointing along the ray - automatically normalized when set More...
 

Detailed Description

Defines a ray in two dimensions, specified by a starting position and a direction.

Constructor & Destructor Documentation

OmegaEngine.Values.Vector2Ray.Vector2Ray ( Vector2  point,
Vector2  direction 
)
inline

Creates a new ray

Parameters
pointA point along the ray
directionA vector pointing along the ray - automatically normalized when set

Property Documentation

Vector2 OmegaEngine.Values.Vector2Ray.Direction
getset

A vector pointing along the ray - automatically normalized when set

Vector2 OmegaEngine.Values.Vector2Ray.Position
get

Specifies the location of the ray's origin.


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