MCPcopy Create free account
hub / github.com/Vulae/pkmc / new

Method new

pkmc-server/src/command.rs:43–55  ·  view source on GitHub ↗
(
        relative_coordinates: Vec3<f64>,
        local_coordinates: Vec3<f64>,
        local_forward: Vec3<f64>,
        local_up: Vec3<f64>,
    )

Source from the content-addressed store, hash-verified

41
42impl CommandCoordinateTransform {
43 pub fn new(
44 relative_coordinates: Vec3<f64>,
45 local_coordinates: Vec3<f64>,
46 local_forward: Vec3<f64>,
47 local_up: Vec3<f64>,
48 ) -> Self {
49 Self {
50 relative_coordinates,
51 local_coordinates,
52 local_forward: local_forward.normalized(),
53 local_up: local_up.normalized(),
54 }
55 }
56
57 pub fn new_partial(
58 relative_coordinates: Vec3<f64>,

Callers

nothing calls this directly

Calls 1

normalizedMethod · 0.80

Tested by

no test coverage detected