UdonLibrary
1.0.0
機械システム研究部 C++ ライブラリ
Toggle main menu visibility
読み取り中…
検索中…
一致する文字列を見つけられません
Vector2D.hpp
[詳解]
1
//
2
// 二次元ベクトル
3
//
4
// Copyright (c) 2022 udonrobo
5
//
6
7
#pragma once
8
9
#include "
Forward/Polar.hpp
"
10
#include "
Forward/Vector2D.hpp
"
11
#include "
Forward/Vector3D.hpp
"
12
13
inline
Udon::Vec3
Udon::Vec2::xy0
() const noexcept
14
{
15
return
{
x
,
y
, 0 };
16
}
17
18
inline
Udon::Polar
Udon::Vec2::toPolar
() const noexcept
19
{
20
return
{
length
(),
angle
() };
21
}
Polar.hpp
Vector2D.hpp
Vector3D.hpp
Udon::Polar
極座標系
Definition
Polar.hpp:21
Udon::Vec2::y
ValueType y
Y成分
Definition
Vector2D.hpp:31
Udon::Vec2::xy0
Udon::Vec3 xy0() const noexcept
Definition
Vector2D.hpp:13
Udon::Vec2::length
ValueType length() const noexcept
原点からの距離を求める
Definition
Vector2D.hpp:221
Udon::Vec2::angle
ValueType angle() const noexcept
原点からの時計回りの角度を求める
Definition
Vector2D.hpp:205
Udon::Vec2::x
ValueType x
X成分
Definition
Vector2D.hpp:28
Udon::Vec2::toPolar
Udon::Polar toPolar() const noexcept
Definition
Vector2D.hpp:18
Udon::Vec3
三次元ベクトル
Definition
Vector3D.hpp:20