Otter  0.9.88
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.Vector4 Struct Reference

Struct for representing a Vector4. More...

Inherits IEquatable< Vector4 >.

Public Member Functions

 Vector4 (float x, float y, float z, float w)
 
 Vector4 (Vector2 value, float z, float w)
 
 Vector4 (Vector3 value, float w)
 
 Vector4 (float value)
 
override bool Equals (object obj)
 
bool Equals (Vector4 other)
 
override int GetHashCode ()
 
float Length ()
 
float LengthSquared ()
 
void Normalize ()
 
override string ToString ()
 

Static Public Member Functions

static Vector4 Add (Vector4 value1, Vector4 value2)
 
static void Add (ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 
static Vector4 Barycentric (Vector4 value1, Vector4 value2, Vector4 value3, float amount1, float amount2)
 
static void Barycentric (ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, float amount1, float amount2, out Vector4 result)
 
static Vector4 CatmullRom (Vector4 value1, Vector4 value2, Vector4 value3, Vector4 value4, float amount)
 
static void CatmullRom (ref Vector4 value1, ref Vector4 value2, ref Vector4 value3, ref Vector4 value4, float amount, out Vector4 result)
 
static Vector4 Clamp (Vector4 value1, Vector4 min, Vector4 max)
 
static void Clamp (ref Vector4 value1, ref Vector4 min, ref Vector4 max, out Vector4 result)
 
static float Distance (Vector4 value1, Vector4 value2)
 
static void Distance (ref Vector4 value1, ref Vector4 value2, out float result)
 
static float DistanceSquared (Vector4 value1, Vector4 value2)
 
static void DistanceSquared (ref Vector4 value1, ref Vector4 value2, out float result)
 
static Vector4 Divide (Vector4 value1, Vector4 value2)
 
static Vector4 Divide (Vector4 value1, float divider)
 
static void Divide (ref Vector4 value1, float divider, out Vector4 result)
 
static void Divide (ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 
static float Dot (Vector4 vector1, Vector4 vector2)
 
static void Dot (ref Vector4 vector1, ref Vector4 vector2, out float result)
 
static Vector4 Hermite (Vector4 value1, Vector4 tangent1, Vector4 value2, Vector4 tangent2, float amount)
 
static void Hermite (ref Vector4 value1, ref Vector4 tangent1, ref Vector4 value2, ref Vector4 tangent2, float amount, out Vector4 result)
 
static Vector4 Lerp (Vector4 value1, Vector4 value2, float amount)
 
static void Lerp (ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result)
 
static Vector4 Max (Vector4 value1, Vector4 value2)
 
static void Max (ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 
static Vector4 Min (Vector4 value1, Vector4 value2)
 
static void Min (ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 
static Vector4 Multiply (Vector4 value1, Vector4 value2)
 
static Vector4 Multiply (Vector4 value1, float scaleFactor)
 
static void Multiply (ref Vector4 value1, float scaleFactor, out Vector4 result)
 
static void Multiply (ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 
static Vector4 Negate (Vector4 value)
 
static void Negate (ref Vector4 value, out Vector4 result)
 
static Vector4 Normalize (Vector4 vector)
 
static void Normalize (ref Vector4 vector, out Vector4 result)
 
static Vector4 SmoothStep (Vector4 value1, Vector4 value2, float amount)
 
static void SmoothStep (ref Vector4 value1, ref Vector4 value2, float amount, out Vector4 result)
 
static Vector4 Subtract (Vector4 value1, Vector4 value2)
 
static void Subtract (ref Vector4 value1, ref Vector4 value2, out Vector4 result)
 
static Vector4 Transform (Vector2 position, Matrix matrix)
 
static Vector4 Transform (Vector3 position, Matrix matrix)
 
static Vector4 Transform (Vector4 vector, Matrix matrix)
 
static void Transform (ref Vector2 position, ref Matrix matrix, out Vector4 result)
 
static void Transform (ref Vector3 position, ref Matrix matrix, out Vector4 result)
 
static void Transform (ref Vector4 vector, ref Matrix matrix, out Vector4 result)
 
static Vector4 operator- (Vector4 value)
 
static bool operator== (Vector4 value1, Vector4 value2)
 
static bool operator!= (Vector4 value1, Vector4 value2)
 
static Vector4 operator+ (Vector4 value1, Vector4 value2)
 
static Vector4 operator- (Vector4 value1, Vector4 value2)
 
static Vector4 operator* (Vector4 value1, Vector4 value2)
 
static Vector4 operator* (Vector4 value1, float scaleFactor)
 
static Vector4 operator* (float scaleFactor, Vector4 value1)
 
static Vector4 operator/ (Vector4 value1, Vector4 value2)
 
static Vector4 operator/ (Vector4 value1, float divider)
 

Public Attributes

float X
 
float Y
 
float Z
 
float W
 

Properties

static Vector4 Zero [get]
 
static Vector4 One [get]
 
static Vector4 UnitX [get]
 
static Vector4 UnitY [get]
 
static Vector4 UnitZ [get]
 
static Vector4 UnitW [get]
 

Detailed Description

Struct for representing a Vector4.


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