Skip to content

Vector3Info

Tommo J. Phillips edited this page Oct 22, 2023 · 3 revisions

Vector3Info

Namespace: TommoJProductions.ModApi

Represents a only x, y, z from a Vector3

public class Vector3Info

Inheritance ObjectVector3Info

Properties

x

represents the x cord.

public float x { get; set; }

Property Value

Single

y

represents the y cord.

public float y { get; set; }

Property Value

Single

z

represents the z cord.

public float z { get; set; }

Property Value

Single

Constructors

Vector3Info()

inits a new info with zeros.

public Vector3Info()

Vector3Info(Single, Single, Single)

inits a new info.

public Vector3Info(float x, float y, float z)

Parameters

x Single

y Single

z Single

Vector3Info(Vector3)

inits a new vector3info with vector3 values.

public Vector3Info(Vector3 v)

Parameters

v Vector3

Methods

getInfo(Vector3)

converts a vector3.

public static Vector3Info getInfo(Vector3 v)

Parameters

v Vector3
the vector3 to convert.

Returns

Vector3Info
new instance Vector3Info

Equals(Object)

Determines if object is a vector 3 info and if that instance equals this instance.

public virtual bool Equals(object obj)

Parameters

obj Object
the object to test.

Returns

Boolean

GetHashCode()

gets the vector3 hashcode.

public virtual int GetHashCode()

Returns

Int32

Clone this wiki locally