mirror of
https://github.com/UOH-CS-Level5/551455-graphics-programming-2526-the-repo-Zyb3rWolfi.git
synced 2025-11-29 00:43:08 +00:00
58 lines
1.2 KiB
C#
58 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public class MyVector
|
|
{
|
|
public float X { get; private set; }
|
|
public float Y { get; private set; }
|
|
public float Z { get; private set; }
|
|
// this W component has only been included to make it easier to do Matrix multiplications
|
|
public float W { get; private set; }
|
|
public MyVector(float pX, float pY, float pZ, float pW = 1)
|
|
{
|
|
|
|
}
|
|
|
|
public MyVector Add(MyVector pVector)
|
|
{
|
|
return null;
|
|
}
|
|
public MyVector Subtract(MyVector pVector)
|
|
{
|
|
return null;
|
|
}
|
|
public MyVector Multiply(float pScalar)
|
|
{
|
|
return null;
|
|
}
|
|
public MyVector Divide(float pScalar)
|
|
{
|
|
return null;
|
|
}
|
|
public float Magnitude()
|
|
{
|
|
return -1;
|
|
}
|
|
public MyVector Normalise()
|
|
{
|
|
return null;
|
|
}
|
|
public float DotProduct(MyVector pVector)
|
|
{
|
|
return -1;
|
|
}
|
|
public MyVector Interpolate(MyVector pVector, float pInterpolation)
|
|
{
|
|
return null;
|
|
}
|
|
public float AngleBetween(MyVector pVector)
|
|
{
|
|
return -1;
|
|
}
|
|
public MyVector CrossProduct(MyVector pVector)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
}
|