Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling of ShapeBuilder #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/transform-gizmo/src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ use crate::math::world_to_screen;

const STEPS_PER_RAD: f64 = 20.0;

pub(crate) struct ShapeBuidler {
pub(crate) struct ShapeBuilder {
mvp: DMat4,
viewport: Rect,
pixels_per_point: f32,
}

impl ShapeBuidler {
impl ShapeBuilder {
pub(crate) fn new(mvp: DMat4, viewport: Rect, pixels_per_point: f32) -> Self {
Self {
mvp,
Expand Down
8 changes: 4 additions & 4 deletions crates/transform-gizmo/src/subgizmo/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use ecolor::Color32;
use enumset::EnumSet;
use std::ops::{Add, RangeInclusive};

use crate::shape::ShapeBuidler;
use crate::shape::ShapeBuilder;
use crate::{config::PreparedGizmoConfig, gizmo::Ray, GizmoDirection, GizmoDrawData};
use glam::{DMat3, DMat4, DQuat, DVec3};

Expand Down Expand Up @@ -190,7 +190,7 @@ pub(crate) fn draw_arrow(
DMat4::from_translation(config.translation)
};

let shape_builder = ShapeBuidler::new(
let shape_builder = ShapeBuilder::new(
config.view_projection * transform,
config.viewport,
config.pixels_per_point,
Expand Down Expand Up @@ -251,7 +251,7 @@ pub(crate) fn draw_plane(
DMat4::from_translation(config.translation)
};

let shape_builder = ShapeBuidler::new(
let shape_builder = ShapeBuilder::new(
config.view_projection * transform,
config.viewport,
config.pixels_per_point,
Expand Down Expand Up @@ -300,7 +300,7 @@ pub(crate) fn draw_circle(

let transform = DMat4::from_rotation_translation(rotation, config.translation);

let shape_builder = ShapeBuidler::new(
let shape_builder = ShapeBuilder::new(
config.view_projection * transform,
config.viewport,
config.pixels_per_point,
Expand Down
4 changes: 2 additions & 2 deletions crates/transform-gizmo/src/subgizmo/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::math::{
ray_to_plane_origin, rotation_align, round_to_interval, world_to_screen, DMat3, DMat4, DQuat,
DVec2, DVec3, Pos2,
};
use crate::shape::ShapeBuidler;
use crate::shape::ShapeBuilder;
use crate::subgizmo::common::{gizmo_color, gizmo_local_normal, gizmo_normal, outer_circle_radius};
use crate::subgizmo::{SubGizmoConfig, SubGizmoKind};
use crate::{gizmo::Ray, GizmoDirection, GizmoDrawData, GizmoResult};
Expand Down Expand Up @@ -111,7 +111,7 @@ impl SubGizmoKind for Rotation {
let config = subgizmo.config;

let transform = rotation_matrix(subgizmo);
let shape_builder = ShapeBuidler::new(
let shape_builder = ShapeBuilder::new(
config.view_projection * transform,
config.viewport,
config.pixels_per_point,
Expand Down
Loading