Show / Hide Table of Contents

Class WorldExtensions

Inheritance
System.Object
WorldExtensions
Namespace: Eco.Shared.Voxel
Assembly: Eco.Shared.dll
Syntax
public static class WorldExtensions : Object

Methods

DescribeDistance(Vector2, Vector2, Boolean)

Declaration
public static LocString DescribeDistance(this Vector2 mypos, Vector2 otherPos, bool shortDesc = false)
Parameters
Type Name Description
Vector2 mypos
Vector2 otherPos
System.Boolean shortDesc
Returns
Type Description
LocString

DescribeDistance(Vector2, Single, Boolean)

Declaration
public static LocString DescribeDistance(this Vector2 toDest, float dist, bool shortDesc = false)
Parameters
Type Name Description
Vector2 toDest
System.Single dist
System.Boolean shortDesc
Returns
Type Description
LocString

DescribeDistance(IPositionAndBounds, IPositionAndBounds, Boolean)

Declaration
public static LocString DescribeDistance(IPositionAndBounds me, IPositionAndBounds other, bool shortDesc = false)
Parameters
Type Name Description
IPositionAndBounds me
IPositionAndBounds other
System.Boolean shortDesc
Returns
Type Description
LocString

DescribeDistance(Vector3, Vector3, Boolean)

Declaration
public static LocString DescribeDistance(this Vector3 mypos, Vector3 otherPos, bool shortDesc = false)
Parameters
Type Name Description
System.Numerics.Vector3 mypos
System.Numerics.Vector3 otherPos
System.Boolean shortDesc
Returns
Type Description
LocString
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾