1 datamodels Vector3
RaidMax edited this page 2023-05-20 22:09:21 -05:00

Vector3 Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph Data.Models
  Data.Models.Vector3[[Vector3]]
  end

Members

Properties

Public properties

Type Name Methods
int Vector3Id get, set
float X get, protected set
float Y get, protected set
float Z get, protected set

Methods

Public methods

Returns Name
double AngleBetween(Vector3 a)
double DotProduct(Vector3 a)
bool Equals(object obj)
double Magnitude()
string ToString()

Public Static methods

Returns Name
double AbsoluteDistance(Vector3 a, Vector3 b)
double Distance(Vector3 a, Vector3 b)
Vector3 Parse(string s)
Vector3 Subtract(Vector3 a, Vector3 b)
double ViewAngleDistance(Vector3 a, Vector3 b, Vector3 c)

Details

Constructors

Vector3 [1/2]

Source code

public Vector3()

Vector3 [2/2]

Source code

public Vector3(float x, float y, float z)
Arguments
Type Name Description
float x
float y
float z

Methods

ToString

Source code

public override string ToString()

Equals

Source code

public override bool Equals(object obj)
Arguments
Type Name Description
object obj

Parse

Source code

public static Vector3 Parse(string s)
Arguments
Type Name Description
string s

Distance

Source code

public static double Distance(Vector3 a, Vector3 b)
Arguments
Type Name Description
Vector3 a
Vector3 b

AbsoluteDistance

Source code

public static double AbsoluteDistance(Vector3 a, Vector3 b)
Arguments
Type Name Description
Vector3 a
Vector3 b

ViewAngleDistance

Source code

public static double ViewAngleDistance(Vector3 a, Vector3 b, Vector3 c)
Arguments
Type Name Description
Vector3 a
Vector3 b
Vector3 c

Subtract

Source code

public static Vector3 Subtract(Vector3 a, Vector3 b)
Arguments
Type Name Description
Vector3 a
Vector3 b

DotProduct

Source code

public double DotProduct(Vector3 a)
Arguments
Type Name Description
Vector3 a

Magnitude

Source code

public double Magnitude()

AngleBetween

Source code

public double AngleBetween(Vector3 a)
Arguments
Type Name Description
Vector3 a

Properties

Vector3Id

public int Vector3Id { get; set; }

X

public float X { get; protected set; }

Y

public float Y { get; protected set; }

Z

public float Z { get; protected set; }

Generated with ModularDoc