「AABB」を編集中
この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
44行目: | 44行目: | ||
public AABB(Vector3 from, Vector3 to) | public AABB(Vector3 from, Vector3 to) | ||
{ | { | ||
− | this.From = new Vector3( | + | this.From = new Vector3(MathHelper.Min(from.X, to.X), MathHelper.Min(from.Y, to.Y), MathHelper.Min(from.Z, to.Z)); |
− | this.To = new Vector3( | + | this.To = new Vector3(MathHelper.Max(from.X, to.X), MathHelper.Max(from.Y, to.Y), MathHelper.Max(from.Z, to.Z)); |
} | } | ||