ORilot / DiscordStuff

A little play around with the Webhook feature of discord
0 stars 0 forks source link

Edge Functionality Extension: Distance Conversions #38

Closed sync-by-unito[bot] closed 4 months ago

sync-by-unito[bot] commented 5 months ago

Dependencies:https://trello.com/c/TvIBv6JP https://trello.com/c/VEsY8Rt5

This card details a method that translates distance from real space into edge space. This card also details calculation of DeltaD and DeltaD^(-1)

New edge constant:

New edge public methods

Length of edge is calculated as follows and should be already implemented as part of edge functionality:

image.png

The traveller should calculate its velocity as follows:

  1. let length of edge = e
  2. e*H = length of edge in km

s (km/T) = speedOfVehicle \ _(1/60)^2 _ T This will give actual distance per tick

s/e*H

Therefore we can express the function translateFromTrueToDeltaD as:

DeltaD = (speedOfVehicle_(T/3600)) / e_H

translateFromDeltaDToTrue

speedOfVehicle = (DeltaD \ _e _ H) / (T/3600)

Specified by: Ted Proctor

Respecified by: Zdenek Plesek

Implemented by:

Validated by:

┆Issue is synchronized with this Trello card by Unito ┆Attachments: image.png

sync-by-unito[bot] commented 5 months ago

➤ Zdenek Plesek commented:

Should be implemented as a dynamic method of the edge class to be callable as edge.TrueToDeltaD(float TrueDistance) edge.DeltaDToTrue(float DeltaD)

Note that DeltaD is not bound between 0-1. DeltaD is always greater or equal 0.

Note that edge length is calculated at initialisation per the Edge class specification. Note that the constants should be implemented as a private static variable.

sync-by-unito[bot] commented 5 months ago

➤ Zdenek Plesek commented:

Collates edge-space and true-space velocity and edge-space and true-space distance

sync-by-unito[bot] commented 5 months ago

➤ Oscar Rilot commented:

scottdeverinne1 I can't find the edge public methods outlined in this card, can you point me to them?